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.
NetSuite Admin Tip | SuiteScript: Check “Send Notification Email” When "Give Access" Field is Ticked
Some customers have requested to expose the Send Email Notification checkbox field in Workflows through Enhancement ID: 238550 Workflow Manager > If "Give Access" checkbox in employee record is set to true, set "Send notification Email" checkbox to true. This is generally to make it easier for NetSuite Admins by reducing a step in the onboarding process.
While this feature is not yet available in NetSuite, a workaround is possible using SuiteScript. The sample code below can be deployed to achieve this functionality:
/**
* @NApiVersion 2.x
* @NScriptType ClientScript
* @NModuleScope SameAccount
*/
define(['N/currentRecord'],
/**
* @param{currentRecord} currentRecord
*/
function(currentRecord) {
/**
* Function to be executed when field is changed.
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see
0
