I am struggling to reference the response from "Post an Adaptive Card to a Teams channel and wait for a response"
My flow is simple:
In my card I have one data collection field: ac_AssignedTo
I have tried the following to update the text field:
(‘Post_an_Adaptive_Card_to_a_Teams_channel_and_wait_for_a_response’)?[‘body’][‘data’][‘ac_AssignedTo’]
(‘Post_an_Adaptive_Card_to_a_Teams_channel_and_wait_for_a_response’)?[‘body/data/ac_AssignedTo’]
Each time I get Invalid Expression
I ran a test and in the Body I did get the following output:
I also tried shortening the name of the Adaptive Card action and still the same result.
Solved! Go to Solution.
Hi @ALBordelon
Try following expression:
Hi @ALBordelon
Try following expression:
Hi @ALBordelon
I had created a sample flow to post an Adaptive Card when a new item is created. I had captured the output of the AC in a variable. Please look at the screenshot below.
Following is the expression used
body('Post_an_Adaptive_Card_to_a_Teams_channel_and_wait_for_a_response')?['data']?['myName']
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...
Hi!
JUst as a general comment, I am afraid output from an adaptive card are not available as Dynamic Content yet, but you can access them with expressions by investigating its outputs:
The structure of the Adaptive Card in my example does not match the one you are using, butthe overall output should look similar
Now, for simplicity, let's assume I recall my "Post an adaptiveCard as FlowBot to a channell wait for for a response Tag" action block as "PostACandWait'.
I can access the whole object by adding the following expression:
outputs('PostACandWait')?['body']
Now on my particular Adaptive Card design, I can also access the comment provided by the responder by using the following expression
outputs('PostACandWait')?['body']?['data']?['comment']
Hope this helps
Proud to be a Flownaut!
Hi @ALBordelon,
It is wired, I try to reproduce the Flow you created, and I find the I could get the ac_AssignedTo dynamic content in the following action directly, could you please share the adaptive card in the Post action?
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
In the compose function i have the following:
output('PostCard')?['body']?['data']?['ac_AssignedTo']
You can then use the output in your next steps.
Unfortunately I see none of the dynamic actions you're seeing, @v-litu-msft 😞 Are you on some more advanced preview track compared to the rest of us plebs? 😛
User | Count |
---|---|
88 | |
39 | |
23 | |
20 | |
16 |
User | Count |
---|---|
127 | |
49 | |
46 | |
33 | |
25 |