none
update lookup type customfield using csom in project server 2013 RRS feed

  • Question

  • hi ,

    I am working on project server online 2013.I want update  lookup type customfield using csom in project server 2013.please suggest me.


    vijay

    Monday, April 20, 2015 9:09 AM

All replies

  • Hey there Vijay,

    I would advise you to take a look at Martin Laukkanen's excellent post about how to update lookup table custom fields via JSOM which is almost identical to the CSOM approach.

    Regards,

    James.


    James Boman BSc. MCP:EAD -

    Thursday, May 7, 2015 7:29 AM
  •  below is code 100% working and follow the link below for complete post
    DraftProject projCheckedOut = pubProj.CheckOut();
                        projCheckedOut.SetCustomFieldValue("Custom_84b123afe227e61180d800155d1c7718", new object[] { "6766928a-e227-e611-80da-00155d1c9615" });
     
                        //Custom_84b123afe227e61180d800155d1c7718=Lookup type custom field GUID. Custom_(Your Lookup type GUID without hyphen).
                        //6766928a-e227-e611-80da-00155d1c9615= Lookup Entries ID which you want to set in your custom field.If you don't know how to get Lookup Entries ID follow my post(Get lookup type value using csom) link is below.
                        projCheckedOut.Update();
                        ProjectCont.Load(projCheckedOut);
                        ProjectCont.ExecuteQuery();
                        ProjectCont.Projects.Update();
                        ProjectCont.ExecuteQuery();
                        projCheckedOut.Publish(true);
                        JobState jobState = ProjectCont.WaitForQueue(ProjectCont.Projects.Update(), 10);
                      

    For complete post follow the ink below

    Update Lookup Type Custom Field using CSOM


    anil gangwar


    • Edited by Anil ROCK Tuesday, June 7, 2016 7:27 AM
    Tuesday, June 7, 2016 7:27 AM