none
Updating Project Server 2016 custom fields RRS feed

  • Question

  • Hi ,

    We are using project server 2016 on premise. We need create projects and update project custom fields using CSOM. setCustomFieldValue is not exist in 2016 version. Is there any option please let me know.

    Thank you

    Thursday, May 9, 2019 5:48 AM

Answers

  • Hi Barbara ,

    Thank you for the information.

    I found another way to update the custom field and its working fine.

    varcfInternalName = "Custom_0045aeb0c-333c-4296-b50a-bd579fdd4652";         

    DraftProjectprjDraft = newPublishedProj.CheckOut().IncludeCustomFields;

                    projContext.Load(projContext.CustomFields);

                    projContext.ExecuteQuery();          

                    prjDraft[cfInternalName] = "Project custom field value";

                    prjDraft.Publish(true);


    • Edited by iqbalkmk Tuesday, May 14, 2019 6:48 AM
    • Marked as answer by iqbalkmk Wednesday, November 11, 2020 7:43 AM
    Tuesday, May 14, 2019 6:47 AM

All replies