cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Joost
Level: Powered On

Send push notification with multiple parameters format

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!!

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Send push notification with multiple parameters format

Hey @Joost
Try this : 

1. Got at "View" and select "Data sources" , you will see a sort window opening .

2. select "Add data source"
3.Select "New Connection"
4. On that list find "PowerApps Notification"

Add it as one of your data sources and then it should work . 

 

14 REPLIES 14
Venxir
Level: Powered On

Re: Send push notification with multiple parameters format

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
Level: Powered On

Re: Send push notification with multiple parameters format

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
Level: Powered On

Re: Send push notification with multiple parameters format

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
Level: Powered On

Re: Send push notification with multiple parameters format

No sorry!

Joost
Level: Powered On

Re: Send push notification with multiple parameters format

Is there someone who has experience with using multiple parameters?

frigi
Level: Powered On

Re: Send push notification with multiple parameters format

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

Administrator
Administrator

Re: Send push notification with multiple parameters format

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-rete...

 

@TopShelf-MSFT

frigi
Level: Powered On

Re: Send push notification with multiple parameters format

Hi @TopShelf-MSFT, 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).

PowerApps Staff Mr-Dang-MSFT
PowerApps Staff

Re: Send push notification with multiple parameters format

@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.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 507 members 4,475 guests
Please welcome our newest community members: