Adding value to Flag10 via PSI

R

Ran @Comverse

Hi,

I try to add value to Flag10 via PSI and get this error:
System.Web.Services.Protocols.SoapException: ProjectServerError(s)
LastError=CustomFieldInvalidID Instructions: Pass this into PSClientError
constructor to access all error information at
Microsoft.Office.Project.Server.WebService.Project.QueueAddToProject(Guid
jobUid, Guid sessionUid, ProjectDataSet dataset, Boolean validateOnly).

The code is:

taskRowCF = ProjDS.TaskCustomFields.NewTaskCustomFieldsRow();
taskRowCF.PROJ_UID = ProjGUID;
taskRowCF.TASK_UID = taskRow.TASK_UID;
taskRowCF.CUSTOM_FIELD_UID = Guid.NewGuid();
taskRowCF.MD_PROP_UID =
PSLibrary.CustomField.LOCAL_CUSTOM_FIELD_MD_PROP_UID_TASK_FLAG10;
taskRowCF.MD_PROP_ID = PSLibrary.TaskProperties.Flag19.WinProjId;
taskRowCF.FLAG_VALUE = true;
taskRowCF.FIELD_TYPE_ENUM = (byte)PSLibrary.CustomField.Type.FLAG;
ProjDS.TaskCustomFields.AddTaskCustomFieldsRow(taskRowCF);

Please advise,
Thanks,
Ran.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top