I need to retrieve values of custom fields assigned to Project. These custom fields are Enterprise fields create in PWA. In the Interop.MSProject.dll there are similar in name properties "Text1 - 10". But when I read any of 10 fields all of these are empty. Also, object of Project does not have GetField method like on Resource to get value via GetField method with using FieldNameToFieldConstant.
The assigned value in the mpp file to the Project looks like this
Could anybody advice how this enterprise custom field value "CF1 Value Server" can be retrieved from MPP file with using Interop.MSProject.dll?
To access the values in the project-level enterprise custom fields, use the FieldNameToFieldConstant method to get the Field ID. Then use the GetField method of the Project summary task.
Dim fldCF1 As Long
fldCF1 = Application.FieldNameToFieldConstant("Text CF 1")
Dim CF1 As String
CF1 = ActiveProject.ProjectSummaryTask.GetField(fldCF1)