MS CRM Set State Demande Dynamics 365 Set State Demande

SetStateRequest req = new SetStateRequest();

req.EntityMoniker = new EntityReference("contact" ,entity.Id);

req.State = new OptionSetValue(1);

req.Status = new OptionSetValue(2);

service.Execute(req);
Kadir Kurt