web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SendPushNotificationsV...
Power Apps
Answered

SendPushNotificationsV2 - How do you make it work!?

(0) ShareShare
ReportReport
Posted on by 73

The documentation for the PowerAppsNotificationV2 connector is not helping me at all. I just want to use this in a Canvas app but I can't figure out what it is asking for.

 

PowerAppsNotificationV2.SendPushNotificationV2(playerType,app,recipients,message,openApp,dynamicParams)

 

I have no idea how to use the dynamicParams, which makes me also unsure I am completing the rest of inputs correctly since I cant get rid of my error message at the end.

 

I am assuming SendPushNotificationV2("App ID", "App ID", ["email"], "message", true/false, ??????)

 

It would be great to just get the most basic line of code to have a button send the user a push notification using V2. Nothing fancy, I just want to get it functioning so I can start working with it. There are 0 YouTube videos on this and the Microsoft documentation doesn't even mention dynamicParams so any help would be appreciated. 

Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    I can get this far with the syntax:

    PowerAppsNotificationV2.SendPushNotificationV2("Power Apps","0f1ff623-99f2-414c-a59a-408f5620dfe0",["bryan.bates@cogitact.ca"],"Test Notification","yes",{})

    however, it is kicking out a runtime error on the App ID argument, stating it is invalid. The one above is a direct copy/paste of the App ID shown in the app details screen:

     

    BCLS776_0-1626318366003.png

    Perhaps someone else will chime in with the magic last step?

     

    If it helps, there is a Power Automate flow version of this push notification, which you could activate from within the app.

     

  • ProgrammerJaDe Profile Picture
    73 on at

    Thank you, that helped. I spent a bunch of time working with the Notifications (V1) and got more familiar with what I can do. Pushing a notification that also navigates you to a specific screen took some effort but I have that working now. However, it doesn't work if the App is already open. I notice that the Params() don't get fed into the App if its already open (at least using V1). I was hoping to test with V2, but I still get the Error 400. I'm actually starting to this this feature is just currently broken.

  • Verified answer
    Knots23 Profile Picture
    18 on at

    The magic parameter app can be found when using the "peek code" option in a Flow that sends a push notification using the same connector. It shows a piece of JSON containing a appIdentifier, displayName, and type.

     

    I managed to send push notification (v2) using:

     

    Notifications.SendPushNotificationV2("PowerApps", JSON({ appIdentifier: "YOUR APP ID HERE" }), ["YOUR E-MAIL ADDRESS HERE"], "Hello World!", true, {});

     (Where "Notifications" is a "PowerAppsNotificationV2" connector.)

     

    It seems only the appIdentifier is required.

  • ProgrammerJaDe Profile Picture
    73 on at

    Life saver. Went down this rabbit hole before but this was prior to your post. You're syntax worked. I can't understand how you figured it out but I am so happy you did. THANKS

  • Jessetechno Profile Picture
    30 on at

    So... there has still been ZERO about this online besides "please help" and "thanks it works now".  How are you getting it to work in Power Automate???  What are the Parameters and HOW DO YOU USE THEM?  Anyone?

  • Karl_Burden Profile Picture
    2 on at

    for the parameters you send them in json format, then on during the "on_start" for the target app you can check for their presence using the "param()" function.
    for example.. {"Action":"Notify","Body":"Hello"} (in my parameters)
    within the onstart param("Action") would return "Notify" and param("Body") would return "Hello" to the app. 
    so a...
    set(Passed_Params,{action:param("Action"),body:param("Body")});
    within your on start would generate the variable that could be used throughout your app (when its launched via that push notification).

     

  • PK_Hong Profile Picture
    337 on at

    Hi

     

    It is not working on my side. 

    Just wonder what went wrong. 

    Any clues? 

     

    Tq

  • AmeyM Profile Picture
    8 on at

    Great but can someone help me pass parameters in that and access them using Param() function. I do try and pass parameters as below as an untyped object but how to access them in the Param() function. SS below for reference 

    AmeyM_0-1719815937760.png

    AmeyM_1-1719816015574.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard