cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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

14 REPLIES 14
Highlighted

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.

Highlighted

PowerAppsNotification.SendPushNotification(
            {
                recipients: [nextPlayer.turn], 
                message: "Word App! It's your turn to make a word!", 
                openApp: true, 
                params: 
                    Table(
                        {
                            key: "gameid", 
                            value: Text(nextPlayer.RecordId)
                        }
                    )
            }
        )

Above is my code. It looks like you're just missing the curly brackets in Table().

@Mr-Dang-MSFT if I take your code with the sopstitution of "," with ";" because of the region.

 

But is all red, like in image.

Highlighted
Anonymous
Not applicable

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 . 

 

View solution in original post

Highlighted
Frequent Visitor

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,795)