cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rohittee1
Frequent Visitor

PowerApps Flows SendPushNotifications Recipients

Hello,

I have been looking everywhere to see if someone knows an answer to this or if this question has been posted before but have had no luck.

 

I am trying to send push notifications to mulitple users using a manual trigger connected to the "PowerApps SendPushNoticiation" action. I can make the manual trigger work for single users but I cannot seem to figure out how to add either a distribution list or even just one extra email address to the recipients pop-up. It always errors out at pushnotifications when I have more then one recipient added to the recipients field. 

 

I had assumed because the Push notifications says "Recipients" it had the functionality to take more then one recipient per push notification. Below are screenshots of what my Flow looks like and what running the flow gives me, I have only gotten this to work with one recipient;

 

Manual Trigger FlowManual Trigger Inputs

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: PowerApps Flows SendPushNotifications Recipients

Hi @rohittee1,

 

Have you checked the Blog below?

Add push notifications to your app and boost user engagement

The formula used for the sendpushnotification in PowerApps is :

PowerAppsNotification.SendPushNotification({recipients:[<list of email addresses>], message:"A new case was assigned to you."})

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

 

66.PNG

67.PNG

I will collect this as a feedback.

Thanks for reporting this.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Community Support
Community Support

Re: PowerApps Flows SendPushNotifications Recipients

Hi @rohittee1,

 

Have you checked the Blog below?

Add push notifications to your app and boost user engagement

The formula used for the sendpushnotification in PowerApps is :

PowerAppsNotification.SendPushNotification({recipients:[<list of email addresses>], message:"A new case was assigned to you."})

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

 

66.PNG

67.PNG

I will collect this as a feedback.

Thanks for reporting this.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Re: PowerApps Flows SendPushNotifications Recipients

@v-micsh-msft - so what is the answer here? What is the syntax required to successfully send a push notification to multiple user email addresses? 

Anonymous
Not applicable

Re: PowerApps Flows SendPushNotifications Recipients

Hi, how about the Office365Groups option  Office365Groups.ListGroupMembers("groupid") ?
I have been trying this instead of configurating a flow, but I didn't manage to get the right syntaxis in order to retrieve emails only.

 

Anonymous
Not applicable

Re: PowerApps Flows SendPushNotifications Recipients

I realised after posting my message that there is a 'known limitation' to using the Powerapps SendPushNotification which only allows one recipient at the time (despite the MS examples showing multiple recipients and the box being listed as 'recipients' (plural)).

 

The only way I can find to achieve this is to create individual actions for each recipient, which is time consuming, laborious and utterly impractical for a large user base. 

Anonymous
Not applicable

Re: PowerApps Flows SendPushNotifications Recipients

You might also use this flow connector.

doc : https://docs.microsoft.com/en-us/powerapps/using-logic-flows

Then in your flow you can define multiple emails.

Bitmann
New Member

Re: PowerApps Flows SendPushNotifications Recipients

Hi rohette1,

 

Hope my steps could be a reference for you.

 

1. Under the EditForm control, add a Dropdown control. Set its Items property as: [“email address1”, “email address2”,…]
Note: The email address should be within your organization.
2. Then set the EditForm’s OnSuccess property as: Back();PowerAppsNotification.SendPushNotification({recipients:[Dropdown1.Selected.Value],message:"tt"})
3. Then create a new item, the push notification would be sent to the recipients.

 

Cheers, Bitmann

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,373)