Skip to main content

Notifications

Power Automate - Building Flows
Answered

Microsoft Flow bot send message more than 1 user

Posted on by 78

I am building a simple flow to send a message to user using a Microsoft flow bot

I got error message when I try to send more than 1 recipient

1.PNG
the error :

{
"error": {
"code": "GraphUserDetailNotFound",
"message": "No user details with email or UPN 'xxx.samantha@xxx.com;david.xxx@xxx.com' were found in Graph."
}
}

note:
when I try to send to 1 user with different email, it work fine.

 

  • MayYSYeung Profile Picture
    MayYSYeung 12 on at
    Microsoft Flow bot send message more than 1 user
    @QWales, I have tried the add an array that consists of the two emails (for trial) into the flow but the test flow takes forever to run, so....? 
  • Suggested answer
    QWales Profile Picture
    QWales 38 on at
    Microsoft Flow bot send message more than 1 user
    I've been looking for a solution to this, other than copying the item to the clipboard and adding it back in with the new recipient - You can apparently setup an array of users and send to each person via a Apply to each loop. Sorry for the lack of detail but in my case I just ended up having a post for each of the 2 users.
  • TW-23091414-0 Profile Picture
    TW-23091414-0 2 on at
    Microsoft Flow bot send message more than 1 user
    Well, for all the people in 2024 that stumble across this, guess what. 
     
    Still doesn't work!
     
    Hopefully I can edit this.....one day
     
  • iso Profile Picture
    iso 250 on at
    Re: Microsoft Flow bot send message more than 1 user

    Nope, doesn't work.  Only 1 recipient at a time. Rather I should say:  doesn't work if in the recipient field you put an array containing all your email addresses, which is what I have because if you need to modify a dozen or more people, you don't want to have a dozen or more individual variables each holding only 1 email address, that makes no sense. So back to looping over the array.  Inelegant solution but there you have it:  why would Microsoft do elegant when they can do ugly?

  • iso Profile Picture
    iso 250 on at
    Re: Microsoft Flow bot send message more than 1 user

    Nope, still doesn't work as I just found out when the Teams action Post message in a chat or channel failed with the dreaded error message:

    "No user details with email or UPN 'name@xxxx.com;name@xxxx.com' were found in Graph."

     

    Reluctantly will have to create a loop over the email addresses array...although I do not want to!! 

     

    Hey Microsoft!  Why can you send an Outlook email to multiple recipients and you can't with the Teams action?  Makes no sense as everyone is used to email multiple recipients at once, it's so ingrained that it is the default reflex we all have.  Therefore I don't care that Teams is designed to be 1-to-1. It's got nothing to do with this.

     

    Under the hood this action could be programmed to distribute one message to N recipients if Microsoft wanted to regardless of the fact that Teams is conceptually designed to be 1:1.  So got nothing to do with Teams, and everything to do with the design choice of the action.

     

     

  • CCoralie Profile Picture
    CCoralie 5 on at
    Re: Microsoft Flow bot send message more than 1 user

    I tried to put multiple recipients but it gave me an error message and no one ended up getting the card. 

    CCoralie_1-1686667172939.png

    When I entered the two recipients they showed up as contacts separated by semi-colons, but it might not work on teams end. 

  • sroo Profile Picture
    sroo 794 on at
    Re: Microsoft Flow bot send message more than 1 user

    Maybe they have updated it now? As you can now message several individuals for quite some time? did it run for you?

  • quaglius Profile Picture
    quaglius 16 on at
    Re: Microsoft Flow bot send message more than 1 user

    Actually, there is. The input allows to put more than one user, it even adds the semi colon automatically.

    quaglius_0-1666383865402.png

    Update: wrong answer (MS keep frustraiting us with this partial features, you'll have to iterate an array emails, only one recipient allowed)

  • sroo Profile Picture
    sroo 794 on at
    Re: Microsoft Flow bot send message more than 1 user

    It's quite troublesome. We have privacy requirements and GDPR to tend to and having the flow owner part of each group chat or channel that needs a notification isn't going to work unfortunately. And using Chat with Flow bot, this posts to individual users and impedes workflow when more people are working together.

  • Re: Microsoft Flow bot send message more than 1 user

    How about this as a solution:
    Send a message in Teams using Power Automate - Power Automate | Microsoft Docs

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard