Dynamic content not available in Power Automate

Scenario

After I added a "Post adaptive card and wait for a response" action the dynamic content of that action was not available to select from.






The adaptive card asks for an approval using this code:

{
   "type": "ActionSet",
   "actions": [
   {
      "type": "Action.Submit",
      "title": "Approve",
      "id": "Approve"
   },
   {
      "type": "Action.Submit",
      "title": "Reject",
      "id": "Reject"
   }
   ]
}

If you want to know more about adaptive cards and how to format them, go here!

After that the submitActionId was not available in the dynamic content. To find out what dynamic content you need in subsequent actions just test your flow and check the output of the "Post adaptive card and wait for a response" action.





To use outcomes from the previous action is manually entered the folowing expression:

outputs('Post_adaptive_card_and_wait_for_a_response')?['body/submitActionId'] 

Comments

Popular posts from this blog

100.000 contacts for TyT MD-2017

De Kunst van het gebruik van Prompts in ChatGPT en Bing Chat Enterprise

Show a users display name in a PnP Modern Search Results Web Part using handlebars helpers