locked
Sample C# Code to change BU in CRM 2013 using webservice RRS feed

  • Question

  • Sample C# Code to change BU in CRM 2013 using webservice. 

    Help on this would be much appreciated.

    Thanks,

    Madhu M.


    Madhu M.

    Thursday, April 10, 2014 8:35 AM

Answers

  • Finally I found it.

    Refer Microsoft.Crm.Sdk.Proxy

    using Microsoft.Crm.Sdk.Messages;

     SetBusinessSystemUserRequest BS = new SetBusinessSystemUserRequest();
                    BS.BusinessId = _buid;
                    BS.UserId = userid;
                    BS.ReassignPrincipal = new EntityReference("systemuser", userid);
                    orgProxy.Execute(BS);


    Madhu M.

    Thursday, April 10, 2014 8:54 AM