Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
missing ; after for-loop initializer (dsa_invoice_cancellation_creation.js$278793#82)
Receiving a weird error when I run a Workflow Action Script, happens even if I block out the entire code as well so completely stumped what is causing this.
<span style="font-family:'Monaco'"><span style="font-size:'11px'"><span style="color:'#931a68'">function</span> dsa_cancel_invoice()</span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"> </span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'">{</span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"> </span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"> nlapiLogExecution(<span style="color:'#3933ff'">'DEBUG'</span>, <span style="color:'#3933ff'">'Execution Context'</span>, nlapiGetContext().getExecutionContext() );</span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"> </span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"><span style="color:'#931a68'">var</span> newRec = nlapiGetNewRecord();</span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'">nlapiLogExecution(<span style="color:'#3933ff'">'DEBUG'</span>, <span style="color:'#3933ff'">'New Record Internal ID'</span>, newRec.getId());</span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"> </span></span> <span style="color:'#4E9072'"><span style="font-family:'Monaco'"><span style="font-size:'11px'">//<span style="text-decoration:underline">var</span> newRec = nlapiLoadRecord('customrecord_dsa_v2',802);</span></span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"> </span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"><span style="color:'#931a68'">var</span> customer = newRec.getFieldValue(<span style="color:'#3933ff'">'custrecord_dsa2_funding_body'</span>); <span style="color:'#4e9072'">//Capture customer for Sales Order Creation</span></span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'">nlapiLogExecution(<span style="color:'#3933ff'">'DEBUG'</span>, <span style="color:'#3933ff'">'Customer'</span>, customer);</span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"> </span></span> <span style="font-family:'Monaco'"><span style="font-size:'11px'"><span style="color:'#931a68'">var</span> refNum = newRec.getFieldValue(<span style="color:'#3933ff'">'custrecord_dsa2_ref'</span>); <span style="color:'#4e9072'">//Capture 0