web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using Flow to send or ...
Power Automate
Answered

Using Flow to send or mention Adaptive card to multiple users

(1) ShareShare
ReportReport
Posted on by 467

I have setup a few adaptive cards and the action "Post your own adaptive card as the Flow bot to a user" seems to be only capable of sending to a single user email, at least I was not able to get it to send when entering multiple emails seperated by a ; or ,  If anyone knows how to send to multiple users I woudl be very interested in knowing how.

 

I also use the same Adaptive cards using the action "Post your own adaptive card as the Flow bot to a channel" and the following

link indicates you can use <at>email<at> to create mentions and this seems to work with the actions that do not use an adaptive card and post to a channel.  I tried placing <at>email<at> in a few locations within the structured adaptive card however it would either break the adaptive card or simply not work.  Has anyone figured out how to use the mentions with the adaptive card?

 

I am simply trying to find a method to send the adaptive cards to multiple users directly and or through mentions.  Thanks

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Dudditz ,

     

    Unfortunately, the Recipient field of Post your own adaptive card as the Flow bot to a user action can only be filled with a single email address.

    The intent here is to send the message to a single user, you can get the requirements of this parameter from the hint.

    If you want to send multiple users, please try the following method.

    The specified user's email addresses are first stored in an array variable, then the array is traversed and the message is sent to multiple users.

    Image reference:

    172.PNG

     

    Best Regards,

  • Dudditz Profile Picture
    467 on at

    That worked great, thank you very much for the suggestion.

     

    Any idea if its possible to use the <at>email<at> to mention multiple people as this approach would be posting the adaptive card to a channel and than mentioning multiple instead of sending multiple people direct messages.

  • Dudditz Profile Picture
    467 on at

    So it turns out I spoke to soon.  When I attached  the flow to my powerapp which delivers the email address in the following format.

    "email@domain.com", "email@domain.com"  

     

    An error is displayed more or less indicating powerapps does not support the connection of Ask in power apps directly to a variable.  This error is due to the fact my "Ask in Powerapps" is the value in the Initialize Variable field.  I am testing having a compose before the variable which seems to have made progress.  See images.

     

    Not suprisingly it fails as it looks like the email address is not correct which is now coming in with surronding \email\  slashes.  Is this the best way to proceed with adding the compose before the variable?  If so any guidance on how to remove the  \ slashes woudl be apreciated.

     

    1.JPG2.JPG3.jpg

  • Verified answer
    Dudditz Profile Picture
    467 on at

    Okay, I have everything working now using your inital recccomendation and adding a filter array.

     

    Code used on the split

    split(outputs('Compose'),',')

    teams3.jpg

  • MarinaPA Profile Picture
    70 on at

    Hi @v-bacao-msft  and @Dudditz  can you please help. When I do this, it resolves the problem with sending multiple approval request at the same time BUT I am not able to respond because adaptive card gives the error. What should I do?

    MarinaPA_1-1597416621148.png

     

    MarinaPA_0-1597416489151.png

     

  • Carlitox Profile Picture
    2 on at

    It may not be the best solution but what I did is to create another action as per below:

     

    Action.PNG

     

    Just copy/paste the whole JSON code and just change the email

     

    Regards

  • MarinaPA Profile Picture
    70 on at

    Hi @Carlitox  I can't do this because my recipients aren't always the same and I find it with the function get item in SP. Do you ahve any other idea?

  • mharst Profile Picture
    10 on at

    Thanks, works like a charm. Only thing is that I would really like it to send it out to about 1000 employees. Is it possible to get the email addresses from azure AD or something? Or connect it with an excel sheet?

  • MarinaPA Profile Picture
    70 on at

    @mharst You can get the emails by using Office 365 Users connector and if you want to just post the adaptive card without waiting for anyone's response you can do it just set the concurrency control of your Apply to each action to 50. It will take longer to post it to that number of people but it should work. Good luck

  • mharst Profile Picture
    10 on at

    I am very new To the powerplatform. Do you have more info how To integrate the office365 users connector?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard