Our goal is to create Revenue Arrangements from Sales Orders in a SuiteScript 2.1 User Event or Scheduled Script. The script errors on the save operation for the Revenue Arrangement.
var revArrangementId = revArrangement.save(); results in a permissions error.
var revArrangementId = revArrangement.save({ enableSourcing: true, ignoreMandatoryFields: true}); results in a USER ERROR Please enter value(s) for the Revenue Element even though each Revenue Element was populated.
What are we missing?
l
Luis
10/11/2024, 2:00 PM
I'm curious about the use case. NS can create it every 3 hours automatically or can be triggered by a click of a button.
r
Robin Hood
10/11/2024, 2:38 PM
True, but we have what we feel are good reasons to handle the process ourselves. Our current solutions for our businesses are multiple times more complex than the solution we are attempting to craft.
Robin Hood
10/11/2024, 2:40 PM
Most of the complexity comes from our use of Kit/Package Items coupled with differing criteria for declaring that performance obligations have been met.
Robin Hood
10/18/2024, 2:02 PM
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.