Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
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.