Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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.