microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.15k stars 309 forks source link

Copilot flows and adaptive card dynamic binding #2471

Open nedakhanoomii opened 2 weeks ago

nedakhanoomii commented 2 weeks ago

We are encountering challenges with dynamically binding an adaptive card in the Copilot bot with calendly type experience with an option for user to choose the dates and the respective slots based on the date selected. We are passing the input from a JSON response which is generated from Power Automate flows. Few challenges to note: Not able to bind dynamic ones with json "${}" Not able to view the right output with the formula while we do a filter/distinct to find unique values and to filter slots based on the date selection. We are able to do it with static content however facing difficulties while working with dynamic binding. Attached, you will find a sample adaptive card formula along with a JSON sample from the Power Automate response for your review. Any assistance in this matter would be greatly appreciated. Thank you in advance!

sample json: sjon sample.txt adaptive 1.txt