We can use the adaptive card designer to design the JSON for the adaptive card.
Once we have created the JSON and use it along with action – “Post Adaptive Card and wait for a response”, it will post the JSON to Teams and wait for User input which we can use within the Power Automate for further processing. In the below card that was sent from flow, it is waiting on user input “Approved Bid Value”.
When the value is entered and Approve Procurement Bid is clicked, the data would be sent back to Power Automate for subsequent actions.
In the flow, we have defined the rest of the action that would capture the value from the card as:
However, when we try to capture the dynamic content sent back from the card using a variable action, we don’t see the output values from the action “Post adaptive card and wait for response” but we can see the rest of the dynamic values in the right panel:
After a bit of research, to my surprise, found that the issue has been caused due to the presence of dynamic content in the “Post adaptive card and wait for response” action. Here we have used a couple of dynamic values from previous actions to formulate the JSON syntax of the card.
So as to fix the issue, temporarily remove the dynamic content from the Post to teams action as below:
This will start showing up the dynamic content outputs from the Post to team action as below
We will then update back the values that we removed in the Post to team action as:
This is kind of a dirty hack to resolve the issue but gets the job done.
Note: This workaround is needed as of Nov 2021 when we are writing the article and in future Power Automate releases, this issue may be worked upon by the MS engineering team.
Thus we saw an issue with the Dynamic Content Population of the “Post adaptive card and wait for response” action and how we can work around it with a quick and dirty hack.