Hi,
I'm trying to write a RetrieveMultiple plugin to show/hide entity views, based on a user's team (alternatively, based on role would also be acceptable).
I've tried to adapt the code made available here:
https://prasannavadlamudiblog.wordpress.com/2018/06/09/team-based-views-in-microsoft-dynamics-crm-365/
I've amended that code to cater for the fact that UCI renders views using FetchExpression, and not QueryExpression.
The code doesn't seem to work, however. I have debugged and can't see any problems, so I'm very confused why this isn't working.
I was hoping that someone might be kind enough to help me with understanding why this doesn't work?
Here is my code (I wasn't able to paste in this post--I think it's too long):
https://pastebin.com/QMmA7XtL
And here is my XML (which is used as an unsecured config to determine the target entity, the team name, and the views to show/hide):
If anyone can provide any assistance, I'd be very grateful!
Thanks