web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Push notifications wit...
Power Apps
Unanswered

Push notifications with PowerApps-NotificationV2 Connector

(1) ShareShare
ReportReport
Posted on by 2

Good morning everybody,

I am going crazy regarding the NotificationV2 connector.

I build an app which is working and I just want to add push notifications for smartphones when a mail is send.

Simply puut the code in onsuccess of the form and be done with it.

So far so good but Microsoft seems to have other plans.

After reviewing the lern-page (Power Apps Notification V2 - Connectors | Microsoft Learn) and watching I don't know how much youtube videos and reading forum posts I still have no finished code.

My code looks like this:

Spoiler (Highlight to read)
// Define variables
Set(
    NotificationTitle,
    "Your Notification Title"
);
Set(
    NotificationBody,
    "Your notification body"
);

// Send push notification
'PowerApps-BenachrichtigungV2'.SendPushNotificationV2(
    // playerType
    "PowerApps",
    // APPID
    "",
    // recipients
    ['Push-Notification-Label-Mailadresses'.Text],
    // Message
    NotificationTitle & ": " & NotificationBody,
    // Open App
    true,
    // dynamic Params
    {}
)
// Define variablesSet(    NotificationTitle,    "Your Notification Title");Set(    NotificationBody,    "Your notification body");// Send push notification'PowerApps-BenachrichtigungV2'.SendPushNotificationV2(    // playerType    "PowerApps",    // APPID    "",    // recipients    ['Push-Notification-Label-Mailadresses'.Text],    // Message    NotificationTitle & ": " & NotificationBody,    // Open App    true,    // dynamic Params    {})
Now my problem is just the dynamic Params. They are required as per documentation.
The error that I get from my code is
Qinga_0-1707472427223.png

Ignore problem 1 of 2 that is simply the notification that the function has invalid argmuents.

I can not for the life of me fix this error no matter what I do.

I left it blank like it is in the code above.

I tried it like this:

Spoiler (Highlight to read)
// Define variables
Set(
    NotificationTitle,
    "Your Notification Title"
);
Set(
    NotificationBody,
    "Your notification body"
);

// Send push notification
'PowerApps-BenachrichtigungV2'.SendPushNotificationV2(
    // playerType
    "PowerApps",
    // APPID
    "",
    // recipients
    ['Push-Notification-Label-Mailadresses'.Text],
    // Message
    NotificationTitle & ": " & NotificationBody,
    // Open App
    true,
    // dynamic Params
    {RecordID:1}
)
// Define variablesSet(    NotificationTitle,    "Your Notification Title");Set(    NotificationBody,    "Your notification body");// Send push notification'PowerApps-BenachrichtigungV2'.SendPushNotificationV2(    // playerType    "PowerApps",    // APPID    "",    // recipients    ['Push-Notification-Label-Mailadresses'.Text],    // Message    NotificationTitle & ": " & NotificationBody,    // Open App    true,    // dynamic Params    {RecordID:1})

Like I saw in videos and posts. 

I just have no idea what PowerApps want from me with the UntypedObject value.

Can somebody explain and help with this?

 

Note: I can't use the V1 connector. Thats disabled in the company I work and i don't want to use a Flow (which I would need to use if this will not work, but I don't want to).

 

Thanks in advance

Jack

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard