RE: How to Create a Revenue Arrangement in SuiteScript 2.1
We want to create Revenue Arrangements in script. The script errors out on the .save() operation. Without options it throws a permissions error:
“name”:”INSUFFICIENT_PERMISSION”,
“message”:”You do not have permission to perform this operation.”
With options like
var revArrangementId = revArrangement.save({ enableSourcing: true, ignoreMandatoryFields: true });
it instead throws a user error:
“name”:”USER_ERROR”,
“message”:”Please enter value(s) for: Revenue Element”
Of course, we are populating (we think) the Revenue Element lines and committing them.
What are we missing?
Thanks in advance for any insight.
We are running the script as Admin. We have also looked at all of the editable fields , comparing our code against system generated RAs. No luck.
We have for the moment abandoned the attempt to create a Revenue Arrangement in script – even though NetSuite documentation says it can be done. Instead, we are letting NetSuite generate the Revenue Arrangement, then editing the Revenue Elements to suit our needs.