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

Re: Send push notification with multiple parameters format

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
Power Apps
Power Apps

Re: Send push notification with multiple parameters format

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().

Highlighted
Frequent Visitor

Re: Send push notification with multiple parameters format

@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

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 . 

 

View solution in original post

Highlighted
Frequent Visitor

Re: Send push notification with multiple parameters format

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,708)