Posts

Showing posts from June, 2021

How to get entries or values of a multi select lookup field of a MS Project from Project Server using code?

To get entries or values of a multi select lookup field of a MS Project from Project Server using code:    //First we need Id of custom multi value lookup field             var customFieldId = "d10e13f5-01c2-eb11-bb97-00155dac5921"; //Custom Field ID             function getLookupdata(lookupFieldID) {                 $.ajax({                     url: _spPageContextInfo.webAbsoluteUrl + "/_api/ProjectServer/CustomFields('" + lookupFieldID + "')/LookupEntries",                     method: "GET",                     async: false,                     headers: {                         "accept": "application/json;odata=verbose"...

How to update values in a custom multi lookup field Field (lookup Table) of MS Project using JavaScript/jQuery?

 Updating values in the custom multi lookup field Field of MS Project using JavaScript/jQuery: First of all we need to know the steps of Project Online for its update/add Step 1: CheckOut a Project Step 2: Update detals in same as in Step 1 Project Step 3: Publish a Project Step 4: CheckIn a Project We always in need to follow the above steps to update any Project to MS Project/Project Server. Same we need to follow in code too.    //Step 1: First, we need to define all the required functions, the below Functions are callback functions             window.checkOutPWAProject = function (projectId, callBack) {                 var checkOutURL = _spPageContextInfo.webAbsoluteUrl + "/_api/ProjectServer/Projects('" + projectId + "')/checkOut()";                 $.ajax({                     url: checkOutURL,     ...