I am working with MSCRM 2015 - OnPrem (v 7.0.1.129).
I have a plugin which sets the value of the User's manager based on a data-import. I am using the 'SetParentSystemUserRequest' to set the Manager value on the User record. (see code below)
SetParentSystemUserRequest req = new SetParentSystemUserRequest
{
UserId = userRecord.Id,
ParentId = managerRecord.Id,
KeepChildUsers = true
};
SetParentSystemUserResponse resp = (SetParentSystemUserResponse)service.Execute(req);
There are scenarios where I need to clear out the existing Manager field on User. How do I do that using the SDK?
*This post is locked for comments
Using the "RemoveParentRequest" does the trick!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156