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

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.

PowerApps Staff Mr-Dang-MSFT
PowerApps Staff

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

frigi
Level: Powered On

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

PowerBrian
Level: Powered On

Re: Send push notification with multiple parameters format

 

Helpful resources

Announcements
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

Top Kudoed Authors
Users Online
Currently online: 97 members 3,684 guests
Please welcome our newest community members: