Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Script for updating item location configuration #25507 Score: 0

    Iris Tan
    Member
    • Contributions: 3
    • Level 1
    @iris_tan

    Resolved! Posting the script here and hopefully it helps someone in the future. Item Location Configuration is a separate record type to item.

    function updReorderPoint(rec_type, rec_id)

    {

    var itemRec = nlapiLoadRecord(rec_type, rec_id)

    itemRec.setFieldValue(‘reorderpoint’, null);

    itemRec.setFieldValue(‘preferredstocklevel’, null);

    nlapiSubmitRecord(itemRec);

    }

  • in reply to: Script for updating item location configuration #25506 Score: 0

    Iris Tan
    Member
    • Contributions: 3
    • Level 1
    @iris_tan

    Ah thanks Adolfo! How embarrassing. I’m new to scripting. Have fixed that up. Next challenge is trying to target the right field in the sublist as the script runs fine but the values are not being updated. have tried Null or a numeric value but it is not updating. Have also ensure auto reorder points and auto preferred stock level is unchecked.

Viewing 2 posts - 1 through 2 (of 2 total)