none
Update Resources level custom fields using javascript RRS feed

  • Question

  • I am trying to update resources level custom field using java script for project server online but failed,Please tell me where am I wrong ?

    my code look like as,

     

    projContext.executeQueryAsync(function () {  

          //alert("Current name is: "+res.get_name());          

         if (res.get_isCheckedOut()) {           

    alert('Resource is checked out, it cannot be updated');                  }

    else {         

    // default field update successfully           

      res.set_email("AjayTyagi@yahoomail.com");           

    // custom field not updated          

      res.setCustomFieldValue("Custom_19b69f64-5b3a-e511-80d4-00155d18940b","ABC");   

             resources.update();        

        projContext.executeQueryAsync(function () {    

                alert("Update Done");                          }, onQueryFailed);     

       }    }, onQueryFailed);



    • Edited by Ajay.Tyagi Wednesday, August 5, 2015 9:50 AM
    Wednesday, August 5, 2015 9:49 AM