Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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.