Hi,
Many times we get the requirement to reactivate a case using C# in Plugin/Workflow/Some App,
Here is the code of it.
Hope it helps.
--
Happy CRM'ing
Gopinath.
Many times we get the requirement to reactivate a case using C# in Plugin/Workflow/Some App,
Here is the code of it.
try
{
SetStateRequest req = new SetStateRequest();
req.EntityMoniker = new EntityReference(entityName,
entityGuid);
req.State = new OptionSetValue(state);
req.Status = new OptionSetValue(status);
orgService.Execute(req);
}
catch (Exception ex)
{
}
Hope it helps.
--
Happy CRM'ing
Gopinath.
Iam really satisfy by your information. It's well-written, to the point, and relative to what I do. I like it very much for giving information on. I hope you can continue and post more.
ReplyDeleteMicrosoft Dynamics CRM Online Training | AX Training