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.
