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 / Send push notification...
Power Apps
Answered

Send push notification with multiple parameters format

(0) ShareShare
ReportReport
Posted on by 10

Hi huys,

 

Can someone please help me to format mulitple parameters into my push notification message. 

 

I currenlty have this:

PowerAppsNotification.SendPushNotification({recipients:[DataCardValue14.Selected.Email], message:"Task " & Upper(DataCardValue9.Text) & " is assigned to you.",
 params:[screen:"1", taskid:BrowseGallery1.Selected.ID]
 })

I've tried many other variants found online and on this forum. All keep on giving errors on the params: part. without the params: it works perfectly. 

 

Many thanks!!

Categories:
  • Venxir Profile Picture
    125 on at

    Hi,

     

    Try this:

    PowerAppsNotification.SendPushNotification({recipients:[DataCardValue14.Selected.Email], message:"Task " & Upper(DataCardValue9.Text) & " is assigned to you.",
     params: screen:"1", taskid:BrowseGallery1.Selected.ID
     })

    See: https://powerapps.microsoft.com/en-us/tutorials/add-notifications/

     

    Tip: I always use concatenate to join strings, it's cleaner code then what you posted.

  • Joost Profile Picture
    10 on at

    Hi, thanks for your reply. Unfortunately it does not work:

     

    Knipsel.JPG

    I'm aware of the link you suggested however there they use a different methode wich only seems toexpect "key" as a first parameter: params:Table({key:"notificationKey", value:"The value for notificationKey"})

  • Venxir Profile Picture
    125 on at
    PowerAppsNotification.SendPushNotification({recipients:[DataCardValue14.Selected.Email], message:"Task " & Upper(DataCardValue9.Text) & " is assigned to you.",
     params: Table({Key:"screen", value:"1",}, {key:"taskid", value:BrowseGallery1.Selected.ID})
     })

    Perhaps the above will help then. It indeed seems to be some kind of key-value pair system.

  • Joost Profile Picture
    10 on at

    No sorry!

  • Joost Profile Picture
    10 on at

    Is there someone who has experience with using multiple parameters?

  • frigi Profile Picture
    26 on at

    I have the same problem, do you have found a solution?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Joost and @frigi - please review the following link. If this does not solve your problem, reply back to the thread and we will work on finding a different solution. 

     

    https://powerapps.microsoft.com/en-us/blog/add-push-notification-to-you-app-and-boost-usage-and-retention/ 

     

    @Anonymous

  • frigi Profile Picture
    26 on at

    Hi @Anonymous, I have followed this instructions https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-notifications and I have non problem to send a simple notification. The problem's are if I try with params.

     

    With the same code as described in the documentation I receive some errors (see image).

    params-error.png
  • Mr-Dang-MSFT Profile Picture
    Microsoft Employee on at

    @frigi, can you show me the rest of the foruma you have for sending the push notification? 

     

    Also, can you try using square brackets instead of the Table() function? Let me know know what happens when you try that.

  • frigi Profile Picture
    26 on at

    Hi @Mr-Dang-MSFT,

    the actual code is this:

    PowerAppsNotification.SendPushNotification(
    {
    recipients:["email2@contoso.com"];
    message:"message in the notif toast";
    params:Table(key:"notificationKey"; value:"The value for notificationKey");
    openApp:true
    }
    )

    I have tryed this way:

    PowerAppsNotification.SendPushNotification(
    {
     recipients:["email2@contoso.com"];
     message:"message in the notif toast";
     params:[key:"notificationKey"; value:"The value for notificationKey"];
     openApp:true
     }
    )

    But I still have an error on "key", that say: this name is invalid.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard