Reputation: 1
I try to retrieve the value of RBS in Enterprise Resource in Project Server by using C#/ CSOM. Unfortunately, I just get the Resource Name, as for the value of RBS, I always cannot handle it. I shared the code for you to look at and hope the seasoned people can help me to address it or sharing some idea in this. I appreciate your help. Thanks.
Explanation:
`var specificRes = projectContext.EnterpriseResources.GetById(new Guid("46914ae8-3c55-488d-a045-4d1a5aaf1e74").ToString());
projectContext.Load(specificRes,
r => r.Name,
r => r.CustomFields,
r => r.CustomFields.IncludeWithDefaultProperties(
lu => lu.LookupTable,
lu => lu.LookupEntries));
projectContext.ExecuteQuery();
var cusField = specificRes.CustomFields.FirstOrDefault(cf => cf.InternalName == "Custom_000039b78bbe4ceb82c4fa8c0c400284");
projectContext.Load(cusField);
projectContext.ExecuteQuery();
Console.WriteLine(cusField.LookupEntries.First().FullValue);`
I hope I could get a simple answer/ solution from this. Because I am a new player on Project Server.
Upvotes: 0
Views: 11