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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Push Notification

(0) ShareShare
ReportReport
Posted on by 312

 Hey guys,

 

 

I have an question on push notifications, what i am trying to do is, send an push notification, warning my company that a new app was built, and so, they should check out!

 

But since, i am new at this topic, what i wanted to try, is sending a notfication, everytime an list is created! So per example, i created X list, the creator will receive an notification of that, and if, for some reason the creator wanted to notify someone, that someone would also get a notification on their cellphone.

 

I checked this article : https://powerapps.microsoft.com/en-us/blog/add-push-notification-to-you-app-and-boost-usage-and-retention/

 

And everything was going alright, until i got this error:

 

Capture.PNG

 

Translated words

"O destinatario" - "The recipient"


It says the recipient is not the identifier or the "Main" email... 

 

The code i used:

Back(); PowerAppsNotification.SendPushNotification({recipients:[Email], message:"A new case was assigned to you."})
Back(); PowerAppsNotification.SendPushNotification({recipients:[Author], message:"A new case was assigned to you."})

 I inserted this two codes at different times!

 

Any help on this subject would be gadly appreciated (On both cases), because i must be missing something here!

 

Help on the first or second case would be appreciated!

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Fields,

     

    It seems that there is something wrong with Recipients in your code. It expects a table, so please make sure the function you are using will return a table value.

     

    To test this issue, I create an app based on SharePoint list, then configure the OnSuccess property of the Form control as below. When a new item is created, a push notification will be sent.

    PowerAppsNotification.SendPushNotification({recipients:[First(Search(ListB,Dropdown1.Selected.Value,"Title")).People.Email],message:"test"})

     

    Best regards,
    Mabel Mao

  • Fields Profile Picture
    312 on at

    Hi @v-yamao-msft,

     

    I have tried what you send, and it did not work, it send me an error that my code was bad written, even though, i changed for everything on my APP! Did i do something wrong?

     

    Fields

  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Fields,

     

    Hope my steps could be a reference for you.

     

    1. Under the EditForm control, add a Dropdown control. Set its Items property as: [“email address1”, “email address2”,…]
    Note: The email address should be within your organization.
    2. Then set the EditForm’s OnSuccess property as: Back();PowerAppsNotification.SendPushNotification({recipients:[Dropdown1.Selected.Value],message:"tt"})
    3. Then create a new item, the push notification would be sent to the recipients.

    4.PNG

     

    Best regards,
    Mabel Mao

  • Fields Profile Picture
    312 on at

    Hi @v-yamao-msft,

     

    Thank you for that one! But on Android, it doesn't show the notifications, and i did exactly what you did, and on PC, it shows 5/6 notifications in arrow, while i just wanted one! Is it a bug?

     

    Fields

     

    EDIT: I was doing a little testing, and i noticed, that, when i added someone on that list, that someone wouldn't get notification, only me... Is it my problem?

     

    Edit: it's now fixed

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard