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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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