cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Muffeljupp
New Member

PowerAppsNotification failes by using params

Hi there,

 

i play with the PowerAppsNotification and everything is well.
But when i will use params: then i get an error.

this is my Code:

 

 

PowerAppsNotification.SendPushNotification(
            {
                recipients: ["Mail-Adress"]; 
                message: "Word App! It's your turn to make a word!"; 
                openApp: true;
                params: Table({key:"Screen2";value:"Val1"})
            }
        )

 

 

Muffeljupp_1-1595593018957.png

 


The Error says, that the Table ist OK, but needs a "key" column as "text".
Without the params: everything is OK and works.

Same connector in PowerAutomate works well.

Muffeljupp_0-1595592976615.png

Any suggestions?

4 REPLIES 4
jlindstrom
Super User
Super User

It is expecting the key to be a variable and the value to be something like DataCardValue10.Text

 

If it works in Power Automate as you wish, why not use Power Automate?

Screen2 appears to be a screen reference, and would not be considered a text value.

 

Use logic (Switch, If, etc.) to determine the "screen" to use and pass it as text.

 

On the receiving side, you may need to map the string back to an appropriate Screen reference, should be easy if you're developing all the apps/Flows used.

 

You are all right, but my Problem is the error in the first screen. The Text in the key and table field is only for demonstrations.

 

I would like to use Pushnotification in PowerApps with the params: 

v-siky-msft
Community Support
Community Support

Hi @Muffeljupp ,

 

I just made a test but it works well without any error messages. 

Snipaste_2020-08-03_16-34-25.png

Have you enabled the experimental feature of enhanced formula bar or anything else?

Could you please try to change another browser, and turn off all related experimental and preview features to see if the issue is fixed?

Hope this help.

Sik

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Kudoed Authors
Users online (63,269)