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.
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.
how do i embed a link behind text in JS?
function afterSubmit(request, response){ // sends an email to the customer with PDF attached var customer = nlapiGetFieldValue('entity'); var email = nlapiLookupField('customer', customer, 'email'); /* var emailchoice = nlapiLookupField('customer', customer, 'custentityemail_invoice_checkbox_cust'); */ if (email != '' && email != null && customer=='23') { var recordid = nlapiGetRecordId(); var link = 'https://system.netsuite.com/app/site/hosting/scriptlet.nl?script=164&deploy=1&custparamso_id='+ recordid; var recordtype = nlapiGetRecordType(); var template = 29; // Invoice Template ID var mailRec = nlapiMergeRecord(template, recordtype, recordid); // Merge Template Internal Id 3 with Record var records = new Object(); // Create a new record object records['transaction'] = recordid; // Declaring a Transaction Record var attachment = nlapiPrintRecord('TRANSACTION', recordid, 'pdf', null); // Print the Merged Record as PDF var loadrecord = nlapiLoadRecord(recordtype, recordid); // Load the Record nlapiSendEmail(-5,
0