I am having a strange issue with my approval flows. The request email is not sending to certain users, via the 'assigned to' column using the dynamic content for a person's email address. This flow is linked to a sharepoint list.
When an approval is triggered certain members report that they simply do not receive an approval email. Upon further investigation, I can see an error message: Forbidden. The request failed. Error code: 'XrmApiRequestFailed'. Error Message: 'Request to XRM API failed with error: 'Message: Principal user (Id=5335d1a3-11d2-e811-a978-0022480081fc, type=8, accessMode= 1, roleCount=4, privilegeCount=555, is missing prvReadmsdyn_flow_basicapprovalmodel privilege (Id=3b2c2d9c-2584-4f34-a2cd-d70097e519c4 Code: 0x80040231 InnerError.
I am unsure as to why this sort of error would be appearing; all the people who are referenced in the 'assigned to' column are members of the company and thus have the same licence as me, and the issue doesn't happen when I put my own email in the assigned to section. Also, everybody is a member of the sharepoint group so that shouldn't be an issue.
Please let me know if you can help.
Could you share a screenshot of your flow? Are you using a group email address or individual email address in the Assigned to field?
Please check if all the users are under Azure Active Group.
I have created an approval flow which is working fine on my side.
I have attached screenshots of the flow below. The dynamic content 'Manager Name' is linked to a sharepoint list item, which is a person/group. How do I check the Azure Directory? Shouldn't all staff members with office 365 access be on this?
Thanks for providing the screenshots.
From the screenshot, it seems that in the Assigned to field, you are using dynamic content “Manger Name”. Will it return a valid email address?
I assume that “Manager Name” is of type people and group. Is there a dynamic content called “Manager Name Email”? If yes, please select this for the Assigned to field.
By the way, about how to add users using Azure AD, please check it at here:
About how to assign roles to a user, please check it here:
Yes the field I'm using is called 'Manager Name Email' the output says: 'Manager_x0020_Name' [Email].
I cannot understand why this would be a problem apart from something in the Azure Portal.
Just to be clear, I can assign managers for users in the 'assign roles' section? I could then use the get manager v2 function could I not?
I have arranged for the global admin to enter who everybody's manager is via the Azure Active Directory. I have used the get manager v2 feature to see if this works and it works fine, but simply does not send the approval email to the manager's mailbox hence why it is stuck on 'start an approval'. I have checked with my manager and I can see that the email is not appearing on his side.
What other potential problems could there be?
Thanks for updating.
Please add a Compose action directly after the trigger and input the dynamic content Manager Name Email to see if it will return the valid email address of your manager.
Besides, as you are trying to send an approval email to your manager and the flow is now stuck on action “Start an approval”, so I assume that the approval email has been sent but just waiting for approval. Please suggest your manager check if the email has been moved to Junk email box or others automatically.
The thing is, I am now using the Get Manager V2 function to find my manager via Azure, then inserting the orange office 365 "Mail" option and I can see that my manager's email comes up correctly. This would negate the possibility that flow was composing an email incorrectly, and the approval still doesn't send. This leads me to the conclusion that it must be some sort of bug on Microsoft's side?
Read the announcement for more information!
Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
The top training and networking event across the globe for Microsoft Business Applications