Hello forum members,
i am trying to write a utility that would migrate project data from Oracle database into Project Server by using CSOM. However, SetCustomFieldValue() method is not working for me. I am getting the following 'Microsoft.ProjectServer.Client.ProjectCreationInformation' does not contain a definition for 'SetCustomFieldValue'. Any ideas? Is there a better way to do this with PSI? I would appreciate some code samples.
//todo: replace code to pull values from db
using (OracleConnection connection = new OracleConnection(connectionString))
{
newProj.Id = Guid.NewGuid();
newProj.Name = projName;
newProj.Description = "Test creating a project with CSOM";
newProj.Start = DateTime.Today.Date;
newProj.EnterpriseProjectTypeId = GetEptUid(basicEpt);
newProj.SetCustomFieldValue("Custom_<c22c082a-3490-e311-b25c-0050569d03ac>", "Approved"); //does not work
}
tatiana