Hi All, looking for ideas on how to better write a...
# suitescript
r
Hi All, looking for ideas on how to better write a 2.0 Submit field where the fields are in a LIB file. Currently I declare a new object and put in the info in there and then pass it in to
values
. Current code works but looking for ideas on how I can write it without a new object. TIA.
Copy code
var values = {};
    values[plcLib.nodeAttribute.field.status] = priorityStatus;

    var id = record.submitFields({
      type: plcLib.nodeAttribute.id,
      id: nodeRecordId,
      values: values,
      options: {
        enableSourcing: false,
        ignoreMandatoryFields: true
      }
    });