cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Padamsimh
Regular Visitor

Adaptive cards to multiple teams users

Hi All,

I have created a flow to send adaptive cards to multiple user and wait for the response and the flow is sending cards but problem is adaptive cards are showing up sequentially. Once the first user provides their response, the Flow will continue by sending the same card to the second user, then it will wait for that user to respond, and so on.
How can I send cards to all users at the same time and wait for the response and also can we keep this response optional since not all users will respond to it( considering some of them are on leave or busy with meetings).

 

Any assistance would be great.

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Padamsimh 

You could get the response data using the following expression:

body('Post_an_Adaptive_Card_to_a_Teams_user_and_wait_for_a_response')?['data']?['name_of_field']

where 'name_of_field' is the name of the field with the data you want to insert in Excel.

 

Hope it helps!
Ferran 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

9 REPLIES 9
fchopo
Super User
Super User

Hello @Padamsimh 

Are you getting the approvers on a "for each loop" and sending a unique approval for each of them? If you create a flow like the following, the adapative card is sent in parallel for every user:

 

2020-08-03 11_01_58-Window.pngRegards,

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Thanks @fchopo  for your reply.

However I haven't created flow to get approvals.

Actually I am sending weekly time-sheet(work hours) submission reminders to the team members and want them reply with their current time-sheet status(Submitted/Not submitted/Later).

 

I provided text-box for input and submit button in the card. Want to collect their responses as output and save it in excel file.

 

Currently posting the adaptive card to teams users and waiting for response but since cards are going out one at a time and waiting for first user respond then it goes to second user and so on.

 

I just want all team members to receive cards at the same time and then want to keep response optional as not all can reply to it and in this case I want my flow to collect the responses as well.

 

Please let me know if its possible in ms flow.

 

Regards,
Padam

 

Hi All,

I have changed  Concurrency Control setting of Apply to each action and now multiple users received cards at the same time.

But yes I still have to wait for all responses to end the flow run successfully and not sure if collection of responses also happens sequentially.

 

Is there is anything to skip the responses in case some users choose not to respond to the card questions and flow still checks with other users and ends successfully after collecting only submitted responses?

 

 

Regards,

Padamisimh

Hello @Padamsimh 

It will wait for a response during a maximum of 30 days. After those days, there will be a "timeout" error, which you can capture and continue executing the flow.

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

 

Hi @fchopo 

Thank you. It works.

 

I have one more question about these adaptive cards.

 

My adaptive cards are to collect user inputs so once they answer question in textboxes and hit submit; how do collect their answers as output and pass them to my excel file present in onedrive.

 

I have tried using 'update rows' for excel online but I dont see any dynamic contents to fetch outputs from adaptive card which ran successfully.

 

Thank you 🙂

 

 

Hello @Padamsimh 

You could get the response data using the following expression:

body('Post_an_Adaptive_Card_to_a_Teams_user_and_wait_for_a_response')?['data']?['name_of_field']

where 'name_of_field' is the name of the field with the data you want to insert in Excel.

 

Hope it helps!
Ferran 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Hi @fchopo 

 

It works for me. Awesome 🙂 accepting above solution.

 

Thanks for your prompt reply on my queries.😊

 

Regards,

Padamsimh

@Padamsimh Use the insert new row! 
You’ll be able to add the answers you collect.

Hi @Padamsimh how were you able to change concurrency and how did you set it up? I've done the same on my apply to each and still won't send adaptive card to all users at the same time? Can you please share your steps. Thank you 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,520)