This Blog is to document some founding related to my work experience, most of them are related to Microsoft Technology,
Thursday, 7 June 2012
Update status in CRM 2011
Here is the code to update a recode via CRM context object:
CRMContext.Execute(new SetStateRequest { EntityMoniker = new EntityReference { Id = new Guid(""), LogicalName = "" //Entity Name }, State = new OptionSetValue(1), //get the value Status = new OptionSetValue(1) } );
No comments:
Post a Comment