none
CSOM - EnterpriseResource.Update() + CustomField RRS feed

  • Question

  • In ProjectOnline I am able to update the Resource Level fields, But I am not able to update the Resource Level Custom fields.

    I guess the way Project has the property as IncludecustomField, It does not have with the Resource. So Customfield values does not come with the Resource.

    Any Idea how to update the ResourceLevel CustomFields using CSOM!?


    Thanks, Parth

    Tuesday, January 7, 2014 6:46 AM

All replies

  • HI Parth,

    To Update Resource level custom fields need to use below code,

    we need internal name of custom fields

    EnterpriseResourceCollection erescollection=context.EnterPriseResources

    context.Load(erescollection)

    context.ExecuteQuery()

    foreach(EnterpriseResource eres in erescollection)

    {

    eres["Custom_24141412412413254113253464241466"]="TestValue";

    context.EnterPriseResources.Update();

    context.ExecuteQuery();

    }

    try above.

    Mark as Answer if succeeded.

    Abid Syed


    Regards, Abid

    Tuesday, May 17, 2016 9:58 AM