Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add the below code to the function node.

Code Block
if(!msg.payload.orbita) {
    msg.payload.orbita = {};
}
if(!msg.payload.orbita.directive) {
    msg.payload.orbita.directive = [];
}
msg.payload.orbita.directive.push(
    {
    "type": "adaptivecard",
    "template": {
        //*****Place your template code herePaste the code from Card Payload Editor*****        
    },
    "templateData": {
        //*****Paste the code from Custom Data Editor*****        
    },
    "hostAppName": {
        "name": "default"
    }
})

Go to You can get the template code from the Adaptive Cards Designer and copy the code from the Card Payload Editor.

...

Paste it inside the template > Card Payload Editor.

...

Paste the code inside the template object in the function node.

...

You can get the templateData code from the Adaptive Cards Designer > Custom Data Editor.

...

Paste the code inside the templateData object in the function node.

...