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 Platform Community / Forums / Power Apps / undefinedHelp with Sen...
Power Apps
Unanswered

undefinedHelp with Sending Conditional Notifications using PowerAppsNotificationV2 in Power Apps

(1) ShareShare
ReportReport
Posted on by 40

Hello everyone,

I'm working on a Power Apps application where I need to send notifications to different recipients based on specific conditions. I'm using the PowerAppsNotificationV2.SendPushNotificationV2 function, but I'm encountering some issues with my formula. Here is the scenario:

  • I have an "HR App" identified by the appIdentifier: 'd122b2da-3333-4df1-a0a7-13103def3ad0'.
  • I have a SharePoint list named 'Approval Matrix' that contains the departments, sections, and approvers.
  • I want to send a notification to the approver whose email matches the selected department and section from my form in Power Apps.

However, the notification doesn't seem to be sent correctly. Can anyone help me identify what might be wrong with this formula? Here are some additional details:

  1. App Identifier JSON Object: I've encapsulated the appIdentifier, displayName, and type fields in a JSON function call to ensure proper formatting.
  2. Recipient Array: I used the LookUp function to get the email and wrapped it in an array using square brackets [].


I've got these error PowerAppsNotificationV2.SendPushNotificationV2 failed: {"error": {"code": "invalidPrincipleIDorMail",
"message": "The recipient 'approverEmail' is not a recognized email address or object identifier in the directory".
My lookup return correct.


code.png

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @htet-htet,

     

    The email is currently defined as the literal string "approverEmail". To reference the variable value would it be possible to change ["approverEmail"] to [approverEmail].

     

    [approverEmail]

     


    If this solves your question, would you be so kind as to accept it as a solution✔️

    If you liked my solution, please give it a thumbs up👍

     

    Connect with me: LinkedIn | Blog

  • htet-htet Profile Picture
    40 on at

    @LaurensM 
    I changed it, but it is same error 

     PowerAppsNotificationV2.SendPushNotificationV2 failed: {"error": {"code": "invalidPrincipleIDorMail",
    "message": "The recipient 'approverEmail' is not a recognized email address or object identifier in the directory".

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 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard