none
Reading Local Custom Field Using PSI RRS feed

  • Question

  • Hello! I'm trying to read local custom field using PSI.
    The following methods return null:

    ProjectDataSet.TaskCustomFieldsRow row =

    projectDataSet.TaskCustomFields.FindByCUSTOM_FIELD_UID(PSLibrary.CustomField.LOCAL_CUSTOM_FIELD_MD_PROP_UID_TASK_TEXT7);


    CustomFieldDataSet.CustomFieldsRow row =

    customFieldsDataSet.CustomFields.FindByMD_PROP_UID(PSLibrary.CustomField.LOCAL_CUSTOM_FIELD_MD_PROP_UID_TASK_TEXT7);

    PSLibrary is Microsoft.Office.Project.Server.Library namespace.

    I've found out in Google how to add local custom fields, but nothing about how to read or update them.
    Couldn't you tell me how to do it?
    Thanks in advice.



    • Edited by Shell Fox Thursday, June 14, 2012 5:42 AM
    Thursday, June 14, 2012 5:42 AM

Answers

  • try
    ProjectDataSet.TaskCustomFieldsRow[] rows =
      projectDataSet.TaskCustomFields.Select(
      "MD_PROP_UID='" + PSLibrary.CustomField.LOCAL_CUSTOM_FIELD_MD_PROP_UID_TASK_TEXT7 + "'" +
      " AND TASK_UID='" + taskRow.TASK_UID + "'");
    • Marked as answer by Shell Fox Thursday, June 14, 2012 6:23 AM
    Thursday, June 14, 2012 6:19 AM

All replies

  • try
    ProjectDataSet.TaskCustomFieldsRow[] rows =
      projectDataSet.TaskCustomFields.Select(
      "MD_PROP_UID='" + PSLibrary.CustomField.LOCAL_CUSTOM_FIELD_MD_PROP_UID_TASK_TEXT7 + "'" +
      " AND TASK_UID='" + taskRow.TASK_UID + "'");
    • Marked as answer by Shell Fox Thursday, June 14, 2012 6:23 AM
    Thursday, June 14, 2012 6:19 AM
  • Thanks, it works! =)
    Thursday, June 14, 2012 6:23 AM