Here is the code for assigning a record to other user.
//systemuser; i.e., User to whome you are assigning the entity to
Assignee = new EntityReference("systemuser", guidUserId),
//Current record which you are assigning to the user
Target = new EntityReference("account", guidAccount)
};
// Execute the Request
service.Execute(assign);
--
Happy CRM'ing
Gopinath.
AssignRequest assign = new AssignRequest
{//systemuser; i.e., User to whome you are assigning the entity to
Assignee = new EntityReference("systemuser", guidUserId),
//Current record which you are assigning to the user
Target = new EntityReference("account", guidAccount)
};
// Execute the Request
service.Execute(assign);
--
Happy CRM'ing
Gopinath.
No comments:
Post a Comment