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 / Multiple email recipients
Power Automate
Unanswered

Multiple email recipients

(0) ShareShare
ReportReport
Posted on by 158

I'm trying to use a SendPushNotification to Powerapps, but for some reason, it fails when I add multiple email addresses.

 

According to this, they should be separated by a semicolon

https://powerusers.microsoft.com/t5/Using-Flows/Bug-Multiple-recipients-Send-email-comma/td-p/4159

According to this, it cannot be done

https://powerusers.microsoft.com/t5/General-Flow-Discussion/PowerApps-Flows-SendPushNotifications-Recipients/m-p/26288#M6250

 

Any confirmation on this?

How do I reference a SharePoint list of users instead?

 

 

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

    Hi @ stumac_31,

     

    Could you please share a screenshot of the configuration of your flow?

    Could you please share more details about the error that you meet when the flow run fails? 

     

    If you want to send an email to one or more recipients using Office 365 outlook, separate multiple email addresses using semicolon would be useful , as is said in the first link that you provide,

     

    However, if you want to send a PushNotification to Powerapps with multiple email addresses, I'm afraid it is not suppported in Microsoft  flow currently, as is said in the second link,under Microsoft Flow, it would double quote the input string, which makes it only one parameter for the recipients.

    With only one Email address entered, the PowerApps push notification would work as expected.

     

    If you would like to send a PushNotification to Powerapps with multiple email addresses, you could submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

     

    Regards,
    Alice Zhang

  • stumac_31 Profile Picture
    158 on at

    Hi @v-yuazh-msft

     

    For some reason I cannot attach an image to this reply. Can I send the notification to a SharePoint list? Would that work?

    See copied text below....

     

     

    Flow run failed

     

    SendPushNotification

    BadRequest.

     

    INPUTS
    Recipients
    [
      "davidburch@cles.org.uk; stuartmacdonald@cles.org.uk"
    ]
    Message
    Have you logged your hours?
    Open App
    true
    OUTPUTS
    Status code
    400
    Headers
    Key
     
    Value
    Pragma
    no-cache
    Strict-Transport-Security
    max-age=31536000; includeSubDomains
    x-ms-request-id
    northeurope:9b4a7924-2e4b-4c87-9db2-3f0ad9a2ce7f
    x-ms-correlation-request-id
    9b4a7924-2e4b-4c87-9db2-3f0ad9a2ce7f
    Timing-Allow-Origin
    *
    Cache-Control
    no-store, no-cache
    Date
    Thu, 29 Mar 2018 07:37:48 GMT
    Content-Length
    223
    Content-Type
    application/json
    Expires
    -1
    Body
    {
      "error": {
        "code""InvalidPrincipalIdOrMail",
        "message""The recipient 'davidburch@cles.org.uk; stuartmacdonald@cles.org.uk' is not a recognized email address or object identifier in the directory."
      }
    }
     
  • RBoneck Profile Picture
    415 on at

    I'm sure you've already fixed it by now, but it appears to be that your syntax should be this inside Office365.SendEmail:

     

     'davidburch@cles.org.uk'; 'stuartmacdonald@cles.org.uk'
  • Community Power Platform Member Profile Picture
    on at

    Hi everyone, 

    Having a similar issue with this, May I ask if this is achievable on powerapp without using flow?
    My goal is to mimic office365's multiple email adding functionality on the same inputbox.
    For example: 
    Sharepoint's sp-peoplepicker inputbox.

    Anyone knows how to do this in powerapps?

    Thanks,

  • RBoneck Profile Picture
    415 on at

    @Anonymous  You should look into this for sending emails within PowerApps.

     

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outlook

     

    You'll need to add Office365 as a datasource in your app to use Office365.SendEmail()

  • Community Power Platform Member Profile Picture
    on at

    Hi Boneckrh19,

    Please allow me to rephrase my question. I think I am not being clear. Sorry for the unclear question. 
    What I'm really trying to achieve is to do something like this :
    multi-email.png

    add multiple emails in powerapps' textinput control.

    BTW this is a screenshot from sharepoint.
    I hope I am now clearer.

    Thanks.

     
  • RBoneck Profile Picture
    415 on at

    @Anonymous 
    If you mean that users would be typing multiple email addresses into a text input, you would just need to use the Split() function to access each email address. 

     

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-split


    Something like one of these options, depending on what your divider is

    Split(TextInput.Text, " ")
    or
    Split(TextInput.Text, ", ")
    or
    Split(TextInput.Text, "x ")

     Wrap that in a ForAll loop (because the results of a Split is a table) and you can loop through the table and use Office365.SendEmail with the result of the split as the recipient.

  • Community Power Platform Member Profile Picture
    on at

    Hi Boneckrh19,

    Thanks for your Immediate reply.
    I will definitely try this out asap.

    Thanks.

  • Community Power Platform Member Profile Picture
    on at

    Hi @Anonymous ,

     

    Were you able to achieve this? I am trying to achieve the same thing but if if put multiple emails, it just send to the last email. TIA!

  • Community Power Platform Member Profile Picture
    on at

    Hi Sir HarSingh,

    Yes, I was able to do this as Sir Boneckrh19 instructed, but unfortunately I cannot provide you the codes I have written before as I am not with the company anymore and has no access to my codes. But yes it is doable,, 😃
    I'm very sorry sir . . .
    Sincerely,
    rpafurong17

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard