I am trying to check if a user has a privilege by using the web API standard function RetrieveUserPrivilegeByPrivilegeName.
After building the request in Typescript, the generated Request URL looks like this:
/api/data/v9.0/systemusers(29474CB3-0F57-EA11-90FE-00155D01A962)/Microsoft.Dynamics.CRM.RetrieveUserPrivilegeByPrivilegeName(PrivilegeName=@PrivilegeName)?@PrivilegeName=%27prvCreatewp_CourseMembers%27
However, i get this error:
"message":"Request message has unresolved parameters.","type":"Microsoft.Crm.CrmHttpException"
I read the documentation and looked for examples to check if i set properly the PrivilegeName parameter and everything seems to be ok. What do i do wrong?