Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Changing the BU of a user using the SetBusinessSystemUserRequest request

$
0
0

Hi All,

I am trying to change the BU of a user using the SetBusinessSystemUserRequest request from a plugin. Below is how I create the request -

SetBusinessSystemUserRequest request = newSetBusinessSystemUserRequest();

request.BusinessId = _tempBU.Id;

request.UserId = userRecordId;

request.ReassignPrincipal = newEntityReference("systemuser", userRecordId);

SetBusinessSystemUserResponse response = (SetBusinessSystemUserResponse)service.Execute(request);

How ever it is throwing an exception. Please help.

Thank You

Best Regards

Sid


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>