Hello guys, i am trying to send alerts to a webhook that i have on my microsoft teams account. for that i need to add this on the webhook body
{
"@context": "http://schema.org/extensions",
"@type": "MessageCard",
"themeColor": "F00",
"title": "Visit the Outlook Dev Portal",
"text": "Click Learn More to learn more about Actionable Messages!"
}
the body field only allows for a string. This means you need to create the required data structure in a transform in the action and then use the {{#toJson}}ctx.payload.however_you_named_it{{/toJson}} mustache function to automatically convert that datastructure to JSON.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.