Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
How to Create Return Authorization based on Sales Order?
Hi community!
I am trying create an Return Authorization record in my script. But sometimes I get the next error:
{"type":"error.SuiteScriptError","name":"INVALID_INITIALIZE_REF","message":"You can not initialize returnauthorization: invalid reference 87014.","stack":["createError(N/error)","beforeSubmit(/SuiteScripts/Automated Process IF.js:116)"],"cause":{"type":"internal error","code":"INVALID_INITIALIZE_REF","details":"You can not initialize returnauthorization: invalid reference 87014.","userEvent":"beforesubmit","stackTrace":["createError(N/error)","beforeSubmit(/SuiteScripts/Automated Process IF.js:116)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
Let me explain more about my task and problem:
I am trying to automate the process of creating an RA. Instead of clicking the "Authorize Return" button in Sales Order, I created a script that should be triggered in Item Fulfilled when the "Mark Shipped" button is clicked.