Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

update project fields including custom fields

$
0
0

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




Viewing all articles
Browse latest Browse all 5347

Trending Articles