My flow currently posts an adaptive card in Teams for a user to enter some information about a file. I've now been asked to post this card to two users. I've tried "firstname.lastname@example.org; email@example.com" but I'm getting this error.
The request failed. Error code: 'GraphUserDetailNotFound'. Error Message: 'No user details with email or UPN 'firstname.lastname@example.org;email@example.com' were found in Graph.'.
Unfortunately, you can send an adaptive card to a single user. Therefore, you should create an Array variable with the emails you want to send the adaptive card (like [ "firstname.lastname@example.org", "email@example.com"] ) and then use an apply-to-each item:
Hope it helps!
I think this worked (thanks @fchopo !), although I now (of course) have an added problem.
The action I was using was "Post an Adaptive Card to a Teams user and wait for a response" which had the extremely helpful [Edit Adaptive Card] function inside the action.
Since that's been deprecated 😡, I changed the action to "Post adaptive card and wait for a response". When doing so, it seems this method posted the card to one user, waited for a response, then posted to the second user.
Because this is not preferable (it should post to both users simultaneously), I changed the action to "Post adaptive card in a chat or channel".
Now it seems the flow is fully processing without waiting for a response. So when the card is interacted with in Teams it says 'Unable to reach app'.
It seems that "Post your own adaptive card as the Flow bot to a user" has also been deprecated.
So my question is, is it possible to post to two users simultaneously and wait for a response?
Have a look at this thread where I posted a similar solution: Solved: Adaptive cards to multiple teams users - Power Platform Community (microsoft.com)
In order to send adaptive cards to multiple users at the same time, you can change the Concurrency Control setting of Apply to each action (the one you use when sending Adaptive Cards to users):
Hope it helps!
I've found an alternate solution. Rather than sending to more than one individual user, I've created a Group Chat to send the adaptive card to. This gives me more flexibility with who can receive the messages and allows users to discuss the cards as they're posted. It also significantly simplifies the workflow.
Thank you for your help! It was great to learn about the email array.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
If you are a small business ISV/Reseller, share your thoughts with our research team.