web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send webhook alerts to...
Power Automate
Unanswered

Send webhook alerts to a channel - Unable to send adaptive card

(0) ShareShare
ReportReport
Posted on by
 
I am trying to send a curl request to the workflow url and it is getting invoked. 
 
Action 'Send_each_adaptive_card' failed
The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']?['attachments']' is of type 'Null'. The result must be a valid array.
 
I am sending a valid JSON message as the data as follows. 
 
# Send the alert using curl
curl -v -H "Content-Type: application/json" -d "${JSON_PAYLOAD}" "${WEBHOOK_URL}"
Categories:
I have the same question (0)
  • WillPage Profile Picture
    2,307 Super User 2025 Season 2 on at
    Looks like you've set up a flow with an HTTP trigger and somewhere lower down in your flow you've got an input to an action or expression that expects an array in a property of the request body called 'attachments'.
     
    For an HTTP request to have a body it must be a POST, PUT or PATCH or something (not GET) but your curl command is missing the -X parameter to specify the method, e.g -X POST so it'll be defaulting to GET. The fact your flow even triggers at all means the trigger is configured for GET but a GET can't have a body so it'll always be null.
     
    • Adjust your flow trigger to expect an HTTP POST
    • Specify POST in your curl command with -X POST
    • Include a body in the request with at least {"attachments": []}
    This should get you past your error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard