cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nigel_s
Advocate I
Advocate I

Push Notification parameter is read only

If you send a push notification with a parameter to an app, it works fine, it will open the app and pass the parameter. Once passed you can't change the value of that parameter, this is unfortunate but OK. The real issue is PowerApps can't update it's own parameters either. If you send a second push notification with a new value in the parameter, the existing value is not overwritten, you have to close the app, to see the new value.

 

In my scenario, users must log an entry twice a day. If they forget I send a notification for the day and period they're missing. When they click + to add a record, I set the date equal to the value of the push parameter. Works great the first time but not the second.

One solution is to close the app after the user makes an entry but It is not efficient to close apps on a mobile nor is it UI friendly. Furthermore, I'm using the standard phone layout for Sharepoint, MS didn't include a close button in the UI (and neither would I). So the user has to close out the app with a swipe or back button but that's not going to happen.

Is there a way to get that second notification parameter without closing the app?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @nigel_s ,

Based on the issue that you mentioned, actually, it is an normal behavior with the PowerApps Push Notification functionality.

 

The parameters you specified within the PowerAppsNotification.SendPushNotification() function would be passed into the opening app only when you click the notification to run the app. Then you could use the Param() function to receive the passed parameter values.

 

If you want to receive the passed parameters within the second notification without closing current app, I afraid that there is no way to achieve your needs in PowerApps currently.

If you would like this feature to be added, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

As an alternative solution, you could consider send an outlook email notification using Power Automate flow and embed the App URL Link of the target app within the email body. When the recipient click the embedded URL link, it would be navigate to run this app. On your side, you could append some parameter values along with the App URL Link, then within your canvas app, you could use the Param function to receive passed parameter values.

Please check and see if the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Include-EditForm-link-for-particular-item-in...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Embedded-link-to-a-Sharepoint-List-item-in-P...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Editing-a-record-from-a-flow-powerapp/m-p/26...

 

The standard format of the App URL Link along with parameters as below:

"https://apps.powerapps.com/play/a8bdf1d5-87b2-4be1-8948-86529f53887a?tenantId=9e51064f-xxxx-41a2-xxxx-9785a9d6c706&Param1=" & "Value1" & "&Param2=" & "Value2"

 

Best regards,

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

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @nigel_s ,

Based on the issue that you mentioned, actually, it is an normal behavior with the PowerApps Push Notification functionality.

 

The parameters you specified within the PowerAppsNotification.SendPushNotification() function would be passed into the opening app only when you click the notification to run the app. Then you could use the Param() function to receive the passed parameter values.

 

If you want to receive the passed parameters within the second notification without closing current app, I afraid that there is no way to achieve your needs in PowerApps currently.

If you would like this feature to be added, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

As an alternative solution, you could consider send an outlook email notification using Power Automate flow and embed the App URL Link of the target app within the email body. When the recipient click the embedded URL link, it would be navigate to run this app. On your side, you could append some parameter values along with the App URL Link, then within your canvas app, you could use the Param function to receive passed parameter values.

Please check and see if the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Include-EditForm-link-for-particular-item-in...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Embedded-link-to-a-Sharepoint-List-item-in-P...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Editing-a-record-from-a-flow-powerapp/m-p/26...

 

The standard format of the App URL Link along with parameters as below:

"https://apps.powerapps.com/play/a8bdf1d5-87b2-4be1-8948-86529f53887a?tenantId=9e51064f-xxxx-41a2-xxxx-9785a9d6c706&Param1=" & "Value1" & "&Param2=" & "Value2"

 

Best regards,

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,860)