Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +Uip84ZiWXL8ScPGIclKQU
Power Apps - Building Power Apps
Unanswered

Push notifications with PowerApps-NotificationV2 Connector

Like (1) ShareShare
ReportReport
Posted on 9 Feb 2024 09:58:51 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:

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard