My Stuff
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Comments
-
This is resolved. When I named my script file during the import you have to put .js on the end. I thought it was just a label but it is not. That name is how it is stored in the file cabinet.
-
So i tried to change it to clientside and it will not accept the file. I went to "Customization>Scripting>Scripts>New". The error I get is below.
-
I will give it a try but why not the "UserEventScript" type? That keeps the code execution on the server instead of the client. I am trying to understand the difference.
-
Condensed script: /** @NApiVersion 2.1 @ */ define(['N/log'], function(log) { function beforeLoad(context) { log.debug({ title: 'beforeLoad fired', details: 'Event = ' + context.type }); } function beforeSubmit(context) { log.debug({ title: 'beforeSubmit fired', details: 'Event = ' + context.type }); } function…
-
Sam, Thanks for the response. I do have the N/log defined. I will remove the comments and repost the script.
-
Error I am receiving after I mark as shipped.
-
Item fulfillment. Next step is to mark as shipped and the event should fire.
-
Deployment setup
-
Script setup
-
A little more detail: Script below. This script just logs what event fired the script: /** @NApiVersion 2.1 @ */ define(['N/log'], function(log) { /** Runs before the form is loaded. @param {Object} context @param {Record} context.newRecord @ */ function beforeLoad(context) { log.debug({ title: 'beforeLoad fired', details:…