Use the code template from
here
In the example below I am updating max records exported to excel.
Code:
QueryExpression qe = new QueryExpression("organization");
qe.ColumnSet = new ColumnSet("maxrecordsforexporttoexcel");
EntityCollection entColl = _service.RetrieveMultiple(qe);
if (entColl.Entities.Count > 0)
{
Entity ent = entColl.Entities[0];
ent["maxrecordsforexporttoexcel"] = 500000;
_service.Update(ent);
}
No comments:
Post a Comment