Microsoft Teams : Power Automate – Sending messages to multiple users in chat box – resolving error – No user details with email or UPN ‘ ‘ were found in Graph.

Power Platform - Power Automate - using action "Post message in a chat or channel2" to send messages to multiple users - getting error - "No user details with email or UPN were found in Graph."
Power Platform - Power Automate - using action "Post message in a chat or channel2" to send messages to multiple users - getting error - "No user details with email or UPN were found in Graph."

Hi All,

Greetings for the day!!!

Today again new learning ! issue and solution !

Use Case / Background / Details

  • We have SharePoint list
  • As we create new item in SharePoint list we need to send message to couple of users in there Teams chat from one of the SharePoint list column of type “Person” – allowing multiple selection
  • So we simply thought to use Teams action “Post message in a chat or channel” and try to use as in below figure
Power Platform - Power Automate - using action "Post message in a chat or channel2" to send messages to multiple users
fig : Power Platform – Power Automate – using action “Post message in a chat or channel” to send messages to multiple users
  • But as we trigger flow we get it failed with below error

No user details with email or UPN ‘prasham@knowledgejunction1.onmicrosoft.com;prasham1@knowledgejunction1.onmicrosoft.com’ were found in Graph.

No user details with email or UPN '' were found in Graph.
fig : Power Platform – Power Automate – using action “Post message in a chat or channel2” to send messages to multiple users – getting error – “No user details with email or UPN ‘prasham@knowledgejunction1.onmicrosoft.com;prasham1@knowledgejunction1.onmicrosoft.com’ were found in Graph.
  • Actually, we can not add more than one recipient to the action “Post message in a chat or channel”. It perfectly works for one recipient
  • We can send message in one users chat box. This is by design

Solution / Workaround

  • We could use Array variable and append all the users to whom we need to send the message in there respective chat box – using “Append to array variable” action
  • Initializing array variable
Power Platform - Power Automate - Initializing variable - of type Array
fig : Power Platform – Power Automate – Initializing variable – of type Array
  • Appending users to Array variable
    • Once we have initialized Array variable we could append respective users to whom we need to send messages in there respective chat box using “Append to array variable” action
 Power Platform - Power Automate - Adding users to Array variable - "Append to array variable" action
fig : Power Platform – Power Automate – Adding users to Array variable – “Append to array variable” action
  • Then we will use “Apply to each” for Array variable and use “Post message in a chat or channel” action within “Apply to each” action for each user
fig : Power Platform – Power Automate – for each user sending message in Teams chat box using – “Post message in a chat or channel” action
  • As we execute flow successfully, users will get an respective message in their Teams chat
Microsoft Teams - Message from Power Automate
fig : Microsoft Teams – Message from Power Automate

Complete flow

Power Platform - Power Automate - flow to send teams messages in multiple users chat box
fig : Power Platform – Power Automate – flow to send teams messages in multiple users chat box
Power Platform - Power Automate - flow to send teams messages in multiple users chat box
fig : Power Platform – Power Automate – flow to send teams messages in multiple users chat box
Power Platform - Power Automate - flow to send teams messages in multiple users chat box
fig : Power Platform – Power Automate – flow to send teams messages in multiple users chat box

Thanks for reading the article !!! Please feel free to discuss in case any issues / suggestions / thoughts / questions !!!

HAVE A GREAT TIME AHEAD !!! LIFE IS BEAUTIFUL 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: