Forum Discussion
Justin Liu
Mar 03, 2017MVP
SharePoint CSOM field.TitleResource.GetValueForUICulture return null value
Hi guys recently, I am working on the sharepoint online multi languages function. I refered this link https://blogs.msdn.microsoft.com/vesku/2014/03/20/office365-multilingual-content-types-site-co...
Justin Liu
Mar 03, 2017MVP
new discovery
if I execute follow code, I can get the result, it seems that it has one time delay, a bug?
ClientResult<string> result = field.TitleResource.GetValueForUICulture("fr-FR");
field.TitleResource.SetValueForUICulture("fr-FR", "temp");
field.UpdateAndPushChanges(true);
context.ExecuteQuery();
if (result.Value != null)
{
Console.WriteLine(result.Value);
field.TitleResource.SetValueForUICulture("fr-FR", "测试描述");
field.UpdateAndPushChanges(true);
context.ExecuteQuery();
}