Skip to main content

Notifications

Community site session details

Community site session details

Session Id : NrL04z6CIV5PAH6mdCK5RK
Power Apps - Building Power Apps
Unanswered

Power Apps Notification V2 in Canvas App

Like (0) ShareShare
ReportReport
Posted on 21 Nov 2021 00:16:00 by 25

Hi all,

 

I want to send push notification to a user when a task is assigned. I'm using "PowerAppsNotificationV2" connector. I trigger the connector on click of a button:

PowerAppsNotificationV2.SendPushNotificationV2("PowerApps","9c79a1ed-9e13-49f0-bf2e-eb0b72985f57",["xyz@gmail.com"],"test message",true,{key:"TaskId", value:"d7eef785-014a-ec11-8c62-6045bd875946"});

I'm facing below error:

msalah_1-1637452759472.png

If I look at details of the app, then the id is correct:

msalah_2-1637453527225.png

What could be the issue? how can I pass the "app" parameter?




  • Muhammad Salahuddin Profile Picture
    25 on 25 Nov 2021 at 13:01:21
    Re: Power Apps Notification V2 in Canvas App

    Hi @v-chenzhi ,

     

    Thanks for your response. Unformatunately, both approaches are not working:

    msalah_0-1637845223308.png

     

    Could you share your version which is working (and has parameter)? If you can try to pass simple text paramter e.g. name="Adam".

  • v-chenzhi Profile Picture
    on 25 Nov 2021 at 07:26:22
    Re: Power Apps Notification V2 in Canvas App

    Hi @msalah ,

     

    I don't know the Json format of the parameters you passed.

    According to your description, I guess there are two possibilities.

    Please try the following workaround.

    {"key":"TaskId", "value":"d7eef785-014a-ec11-8c62-6045bd875946"}

    Or

    {
     "key": {
     "TaskId": {
     "value": "d7eef785-014a-ec11-8c62-6045bd875946"
     }
     }
    }

     

     

    Best Regards,

    Zhi Chen

  • Muhammad Salahuddin Profile Picture
    25 on 24 Nov 2021 at 10:33:14
    Re: Power Apps Notification V2 in Canvas App

    Thanks @v-chenzhi for your response. Using the above mentioned statement / syntax the notification is working. However the paramter "TaskId" is not passed (not working). Could you check if it is working for you if you pass parameter?

  • v-chenzhi Profile Picture
    on 23 Nov 2021 at 04:01:12
    Re: Power Apps Notification V2 in Canvas App

    Hi @BHR,

     

    There is something wrong with the second parameter of your formula

    I have a test on my side for your reference.

    PowerAppsNotificationV2.SendPushNotificationV2("PowerApps", JSON({ appIdentifier: "0ab5ed74-f3e6-4c52-872c-5d3fbedef662",displayName: "1119", type: "CanvasApp"}), ["ZhiChen@xxx.com"], "This is a test!", true, {})

    It works fine.

    Please modify your formula as following

    PowerAppsNotificationV2.SendPushNotificationV2("PowerApps",JSON({appIdentifier:"9c79a1ed-9e13-49f0-bf2e-eb0b72985f57",displayName:"YourAppsName",type: "CanvasApp"}),["xyz@gmail.com"],"test message",true,{key:"TaskId", value:"d7eef785-014a-ec11-8c62-6045bd875946"})
    
    

     

    Best Regards,

    Zhi Chen

  • Community Power Platform Member Profile Picture
    on 21 Nov 2021 at 01:41:02
    Re: Power Apps Notification V2 in Canvas App

    @msalah 

    This video by @RezaDorrani mentions that there's an error with V2 (jump to 19:30) so he uses V1 instead. This video was made Jun-21 so maybe the error has been fixed, not sure?

     

    Maybe try using the first Notifications version instead or building a Flow like at the start of this video?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,075 Most Valuable Professional

Leaderboard
Loading started