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 / 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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard