Hi All,
Please find the below c# code to impersonate the user in MSCRM
EntityReference callingUser = new EntityReference
{
LogicalName = "systemuser",
Id = {Impersonation User GUID}
};
OrganizationServiceProxy serviceProxy = (OrganizationServiceProxy)service;
serviceProxy.CallerId = callingUser.Id;
Replace {Impersonation User GUID} with Guid of User to make the Plugin to run as Passing User.
Please find the below c# code to impersonate the user in MSCRM
EntityReference callingUser = new EntityReference
{
LogicalName = "systemuser",
Id = {Impersonation User GUID}
};
OrganizationServiceProxy serviceProxy = (OrganizationServiceProxy)service;
serviceProxy.CallerId = callingUser.Id;
Replace {Impersonation User GUID} with Guid of User to make the Plugin to run as Passing User.
No comments:
Post a Comment