-
Notifications
You must be signed in to change notification settings - Fork 183
Microsoft SDK Message RetrievePrivilegesRequest returns no privilege in response #614
Comments
Hi @SarviH , Thank you for your feedback. This repo (https://github.com/jordimontana82/fake-xrm-easy) is for v1 of FakeXrmEasy, whereas the sample code you posted is for v2 which has its own repo here: https://github.com/DynamicsValue/fake-xrm-easy. :) I see a couple of things in your middleware.
Can you try making these changes and see if that resolves it? |
Hello @jordimontana82 , Thanks for your reply and useful suggestions. Sure I'll check all tomorrow and get back to you. |
Hello @jordimontana82 , I tried some modifications on Middleware here is my code : but I still have 0 results in privileges, the strange thing is that, the AddPrevilegesRoleRequest is working fine and I see the privilege associated to the user, here is my code : but when I try to use RetrieveUserPrivilegesRequest it returns 0 role privileges, and here is the code : Please let me know if you have any idea about this, thanks in advance :) |
Hello dear @jordimontana82 , finally I found out how to resolve this probleme, actually it's not an issue, just need to manipulate the response of the message which is not out of the box in the mock, simply this solved my problem, I'll share here maybe helps the others :) |
Discussed in #613
Originally posted by SarviH May 23, 2024
Hello, I have a question about SDK Message RetrievePrivilegesRequest, the RolePrivileges in the response is null when I use the fakeService, I'm sure the privilege is associated correctly because using a fetchXML Query I see the result. here is my middleware builder, am I doing something wrong or it could be a bug ?
Thanks for your help in advance
The text was updated successfully, but these errors were encountered: