
Announcements
Hi, I had a couple of webhooks configured in teams with 365 connectors. Now I'm forced to switch to Workflows. At first look the change doesn't seems too big - instead of Webhook URL I now need to generate Workflow URL. However, till now the following simple code worked
Invoke-RestMethod -Method post -Body $json_formated_body -Uri $webhook_url -ContentType 'Application/Json' and now when I replace the old webhook_url with the new wokflow_url I'm getting an error in the workflow log: Error- Action 'Send_each_adaptive_card' failed Error Details- The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerBody()?['body']?['attachments']' is of type 'Null'. The result must be a valid array.