Hi,
I would like to create an EnterpriseResource with CustomField using CSOM in Project Server 2013. I can create EnterpriseResource by following code
EnterpriseResourceCreationInformation newRes = new EnterpriseResourceCreationInformation();
newRes.ResourceType = EnterpriseResourceType.Work;
newRes.Name = item.FullName;
newRes.Id = Guid.NewGuid();
newRes.IsBudget = false;
newRes.IsGeneric = false;
newRes.IsInactive = false;
EnterpriseResource res = resources.Add(newRes);
resources.Update();
projContext.ExecuteQuery();
But this EnterPriseResource does not contains list of CustomFields(list of customFields is empty).
projContext.Load(res.CustomFields);
projContext.ExecuteQuery();
I tried to add some dictionary item in res.FieldValues, but I had no success.
Thanks, Serg Samoilov