Setting Script Parameter Preferences

When you use script parameters, you can specify a preference type. Available preference types are Company and User or you can choose not to set a preference. Company: If the preference is set to Company, the parameter’s value is read from the value set in Setup > Company > Preferences > General Preferences in the Custom Preferences tab.… Continue reading Setting Script Parameter Preferences

Set Script parameter to a script

Requirement is when the user needs to refer a script parameter (scheduled task id) for showing the status of the scheduled script. So on every loading the suitelet needs to verify the task id for the status. let script_deployment = record.load({type: record.Type.SCRIPT_DEPLOYMENT, id: 12345}); script_deployment.setValue({fieldId: ‘custscript_my_parameter’, value: true}); script_deployment.save();

Passing values to Script parameters via Suitescript

Script parameters are useful when there is a requirement to store data specific to a script but more accessible to all users other than developers. Using script parameterswe can avoid hardcoding certain values to the code that is required to be modified often. Also these values can be modified by anyone having access to the… Continue reading Passing values to Script parameters via Suitescript

How to Add script parameter on General Preferences tab in Netsuite

Open the corresponding script to be updated Go to the Parameters tab 3. Click on New Parameter, while creating a new parameter select the preference as Company and add the Label, ID type, etc. 4. Click Save and Go to Netsuite > set up > company > general preferences then you can see the newly… Continue reading How to Add script parameter on General Preferences tab in Netsuite