I need to modify formula for existing field and can't do it because this code raise exception - (Cannot cast 'fld' (which has an actual type of 'Microsoft.SharePoint.Client.Field') to 'Microsoft.SharePoint.Client.FieldCalculated').
using (var clientContext = new ClientContext(@"http://Server"))
var web = clientContext.Web;
var lst = web.Lists.GetByTitle("MyList");
<strong>var fld = (FieldCalculated)lst.Fields.GetByInternalNameOrTitle("Formula1");</strong>
I can't use fld.SchemaXml modification by some reason.
May be you can help me?
View Complete Post