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:
- App Identifier JSON Object: I've encapsulated the appIdentifier, displayName, and type fields in a JSON function call to ensure proper formatting.
- 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.
