Reply
Highlighted
Level: Powered On
Posts: 100
Registered: ‎11-17-2016
Accepted Solution

Mass Push notification

Hi, I need to send a mass push notification to the users in my table with one click of a button.

 

please find the attachment for your reference.Capture1.JPGCapture.JPG

 

Thank you so much for your support!


Accepted Solutions
Super User
Posts: 245
Registered: ‎03-20-2017

Re: Mass Push notification

Good morning,

 

I assume you have a filtered the data already, storing it in either a collection or a gallery. Let's assume you have it in a gallery! You can use the Concat-function (https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate) to build a string of e-mail addresses. Once you have all the addresses you can use the Office365 connector to send the email: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outloo...

 

It should look something like this

UpdateContext({sAddresses:Concat(gData.AllItems; 'Mail address' & ";")})
Office365.SendEmail(sAddresses; "Subject"; "Message body"; {IsHtml:true; Importance:Normal})

In my example, gData is the gallery you have already filtered. Also note that since I'm in Sweden I have to use ';' as a delimiter. Depending on your location, you might have to use a normal comma instead ','.

 

Good luck!

View solution in original post


All Replies
Super User
Posts: 245
Registered: ‎03-20-2017

Re: Mass Push notification

Good morning,

 

I assume you have a filtered the data already, storing it in either a collection or a gallery. Let's assume you have it in a gallery! You can use the Concat-function (https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate) to build a string of e-mail addresses. Once you have all the addresses you can use the Office365 connector to send the email: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outloo...

 

It should look something like this

UpdateContext({sAddresses:Concat(gData.AllItems; 'Mail address' & ";")})
Office365.SendEmail(sAddresses; "Subject"; "Message body"; {IsHtml:true; Importance:Normal})

In my example, gData is the gallery you have already filtered. Also note that since I'm in Sweden I have to use ';' as a delimiter. Depending on your location, you might have to use a normal comma instead ','.

 

Good luck!