Recently I came across a strange issue while creating an approval flow for my CDS custom entity.
The issue is, XrmApprovalsGeneralPermissionsError
I’ll mention only few steps which are required to describe the approval flow issue
- When a record is created in the custom entity of CDS
- Check if the status is pending, If Yes
- Start and wait for an approval
All the steps ran successfully except the “Start and wait for an approval”, every time I tried it used to throw a long error “XrmApprovalsGeneralPermissionsError”
Solution
The mentioned solution worked for me
- Navigate to Settings ->Security -> Users -> Microsoft Flow
- A user named Microsoft flow is present in the CDS
- I came across a blog and created a new security role and assigned read permission to the System job entity under customizations and assign the newly created role to the Microsoft flow user, but that alone didn’t work to me. Apart from that, I assigned the Approval Administrator and Common data service user role to Microsoft flow user and then it worked for me
If you liked the post, please share it with others🙂