cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RJOosthuizen
Helper I
Helper I

PowerApps Push Notification at Certain time to all users

Hi,

 

I want to send a PowerApps push notification to all of the office 365 users at my business at 9 in the morning every week day.

 

This is what i have so far...

Capture.PNG

 

So it goes of every week day at 9 but only i receive it. No one that i share it with receives it. Is it because it only gets my profile and sends it to me? should I use an other office action? I just want a push notification to send to all the users at 9.

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @RJOosthuizen,

 

Do you want to send a PowerApps Push Notification to all the members of your Office 365 Group?

 

I think there is something wrong with your flow. The "Get my profile (V2)" action could only retrieve the profile of the current user (The current account which is used to create a connection to this action) rather than all users' profiles.

 

I have made a test on my side and please take a try with the following workaround:

  • Add a Recurrence trigger.
  • Add a Variables-> "Initialize variable" action, Name set to AllMemberEmailsArray, Type set to Array and Value set to empty.
  • Add a "List group members" action of Office 365 Groups connector, specify Group Id.
  • Add a "Apply to each" action, input parameter set to output of the "List group members" action. Within "Apply to each" action, add a "Append to array variable" action, Name choose AllMemberEmailsArray, Value set to Mail dynamic content of the "List group members" action.
  • Under "Apply to each" action, add a "SendPushNotification" action, click "switch to input entire array" button as below:1.JPG

     The Recipients field set to AllMemberEmailsArray variable.

Image reference:2.JPG

 

3.JPG

The flow works successfully as below:4.JPG

 

 

More details about sending a PowerApps Push Notification from Microsoft Flow, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-notifications

 

 

Best regards,

Kris

 

Community Support Team _ Kris Dai
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

5 REPLIES 5
fabflow
New Member

I'm having the same problem.

I have a flow that runs successfully, but I never receive the notifications.

v-xida-msft
Community Support
Community Support

Hi @RJOosthuizen,

 

Do you want to send a PowerApps Push Notification to all the members of your Office 365 Group?

 

I think there is something wrong with your flow. The "Get my profile (V2)" action could only retrieve the profile of the current user (The current account which is used to create a connection to this action) rather than all users' profiles.

 

I have made a test on my side and please take a try with the following workaround:

  • Add a Recurrence trigger.
  • Add a Variables-> "Initialize variable" action, Name set to AllMemberEmailsArray, Type set to Array and Value set to empty.
  • Add a "List group members" action of Office 365 Groups connector, specify Group Id.
  • Add a "Apply to each" action, input parameter set to output of the "List group members" action. Within "Apply to each" action, add a "Append to array variable" action, Name choose AllMemberEmailsArray, Value set to Mail dynamic content of the "List group members" action.
  • Under "Apply to each" action, add a "SendPushNotification" action, click "switch to input entire array" button as below:1.JPG

     The Recipients field set to AllMemberEmailsArray variable.

Image reference:2.JPG

 

3.JPG

The flow works successfully as below:4.JPG

 

 

More details about sending a PowerApps Push Notification from Microsoft Flow, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-notifications

 

 

Best regards,

Kris

 

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

Hi @v-xida-msft,

 

Thanks a lot! I just needed to create a new group of all the members and now its 100%

 

Thanks you,

Ruan

I'm really sorry to reopen this thread, but I tried this method and I can't get it to work. I always receive the following error message:

 

The request failed with error: 'Too many child clauses specified in search filter expression containing 'OR' operators: 12. Max allowed: 10.'. The tracking Id is '4f318576-457b-42d4-b561-f82a876798b8'.

 

Has anyone an idea what could cause this? Because I don't have any idea why this error message pops up (maybe the Graph endpoint changed it's implementation? Or are there any hidden restrictions I don't know about?).

 

*edit*

 

I got it working now by shrinking the recipients list. I created a group, moved every user inside there and then just referenced the groups E-Mail adress inside the flow. Works for me.

The request failed with error: '{"odata.error":{"code":"Request_UnsupportedQuery","message":{"lang":"en","value":"Too many child clauses specified in search filter expression containing 'OR' operators: 28. Max allowed: 15."},

 

Can you walk me through how you fixed this? 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,904)