Hi, Do you know if is it possible to use the recor...
# suitescript
s
Hi, Do you know if is it possible to use the record.submitFields function without triggering server Suite Script and Workflow ? As you can uncheck the "RUN SERVER SUITESCRIPT AND TRIGGER WORKFLOWS" checkbox when doing csv import. (my function is part of a sceduled script / v2.1) Thx ;)
a
No, is not possible with
record.submitFields
this will trigger at least an
XEDIT
event.
🙏 1
b
its not particularly safe since its not documented, but there is
disableTriggers
which can be used like
ignoreMandatoryFields
in the options
👍 1
a
@battk I assume that if
disabletriggers
works is because it was available as:
Copy code
nlapiSubmitRecord(recordType, {disabletriggers : true, enablesourcing : true});
In SuiteScript 1.0 and because SuiteScript 2.0 uses a lot of underlying 1.0 logic (it feels like a wrapper). It will be interesting to test if this will work with 2.1.