Hello,
I am trying to change a user's business unit using a plugin, but I am not receiving an error nor it working.
I tried the snippet below:
SetBusinessSystemUserRequest request = new SetBusinessSystemUserRequest
{
BusinessId = BU.Id,
UserId = retData.GetAttributeValue<EntityReference>(/AttributeName/).Id,
ReassignPrincipal = retData.GetAttributeValue<EntityReference>(/AttributeName/)
};
SetBusinessSystemUserResponse response = (SetBusinessSystemUserResponse)service.Execute(request);
SetBusinessSystemUserResponse response = (SetBusinessSystemUserResponse)service.Execute(request);
I checked the response, it is empty.
Am I using the correct method to change the BU? or I am missing something in my code?