cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stumac_31
Level: Powered On

Multiple email recipients

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-Re...

 

Any confirmation on this?

How do I reference a SharePoint list of users instead?

 

 

8 REPLIES 8
Community Support Team
Community Support Team

Re: Multiple email recipients

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
Level: Powered On

Re: Multiple email recipients

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."
  }
}
 
Boneckrh19
Level 8

Re: Multiple email recipients

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'
rpafurong17
Level: Powered On

Re: Multiple email recipients

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,

Highlighted
Boneckrh19
Level 8

Re: Multiple email recipients

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

 

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

 

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

rpafurong17
Level: Powered On

Re: Multiple email recipients

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.

 
Boneckrh19
Level 8

Re: Multiple email recipients

@rpafurong17 
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.

rpafurong17
Level: Powered On

Re: Multiple email recipients

Hi Boneckrh19,

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

Thanks.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 54 members 4,795 guests
Please welcome our newest community members: