Hi guyz I jus came to know that In crm 2015 without the use of set state request we can make a record inactive. So i just want to try .But I could nt make the record inactive . Can any one help me out
Entity entity = (Entity)executioncontext.InputParameters["Target"];
Entity co = newEntity("contact");
co.Id = newGuid("8D6650EE-7D45-E511-80E8-3863BB36FB10");
co["statecode"]=newOptionSetValue(1);
co["statuscode"]=newOptionSetValue(2);
service.Update(co);






