
I have a plugin that triggers an Action using the below, this action then goes on to trigger an additional plugin. For most users the plugin / action triggers as expected however there are several users the action / downstream plugin is not triggered.
This plugin runs in scope of the user who initiated it.
From the trace log i can see that no exception has been thrown and that the Try/ Catch has been passed, however there is nothing to identify what the issue is / why the action is not triggered for these users.
Are there some permissions that are required to initiate action? / any clues what my issue could be or how i could better debug this issue.
OrganizationRequest actionReq = new OrganizationRequest("example_Action");
actionReq["Target"] = new EntityReference("example_custom_entity", entity.Id);
tracingService.Trace("call action example_Action");
try
{
// IOrganizationService call
dynamicsService.Execute(actionReq);
}
catch (FaultException<OrganizationServiceFault> ex)
{
tracingService.Trace("Error executing action - " + ex.Message);
}
Hi,
Are there any difference in Security role assigned to the user for whom Action/plugin is working as compared to the user for whom it is not working?
Have you checked Trace log for Action plugin, I would recommend you to add traces in Action plugin also enable profiler for Action plugin steps?
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/