using which actions mails can be generated in netsuite.

In NetSuite, you can generate and send emails using the following actions: nlapiSendEmail: This is a SuiteScript function that allows you to send emails directly from your scripts. It provides flexibility in defining the sender, recipient(s), subject, body, and other email attributes. You can use this function in SuiteScript 1.0. N/email module: SuiteScript 2.0 introduced… Continue reading using which actions mails can be generated in netsuite.

Map reduce script to send picking ticket based on item line location.

if there is 5 items in a sales order with item line location A, B. 3 items in location B and 2 items in location A. need to send details of 3 items in B-to-B location. and other 2 items to A. for this create two advanced pdf templates for picking ticket give the filter… Continue reading Map reduce script to send picking ticket based on item line location.

to convert date in this “Fri Mar 24 2017 00:00:00 GMT-0400 (Eastern Daylight Time)” format to”2017-03-24″ in suitescript

to convert date in this format “Fri Mar 24 2017 00:00:00 GMT-0400” to “2017-03-24” add module N/format. then use the method format. Eg: if(datedonated)                {                let lastDonation = new Date (datedonated);      let formattedDate = format.format({ value: lastDonation,     … Continue reading to convert date in this “Fri Mar 24 2017 00:00:00 GMT-0400 (Eastern Daylight Time)” format to”2017-03-24″ in suitescript

‘white-space: nowrap’ property in CSS

The white-space CSS property sets how white space inside an element is handled. “white-space:nowrap” Collapses white space as for normal but suppresses line breaks (text wrapping) within the source. eg: Set “white-space: normal” It wont over write the content if we set it to normal.

saved search to get the details of record’s field which is set through CSV Import

in this context we need to create the search from the system notes “NetSuite uses System Notes to track any changes made to a record. A system note for a change on a record captures the date and time when the change was made, who made the change, the interface from which the change was… Continue reading saved search to get the details of record’s field which is set through CSV Import

Populate value to a custom field using Saved search

Create a custom field Base Price to inventory item. Store Value should be unchecked. and save create search from item. check public. creating search to be summary search. so give summary type. NB : when giving summary type ‘Group’ is not supported. remaining all are supported. Then fill available Filters. save. then edit the Item… Continue reading Populate value to a custom field using Saved search

to retrieve address from address subrecord

This example access the oldrecord and selects a line on the address sublist. It retrieves a value from the sublist line that is not part of the subrecord. It also retrieves the address subrecord and reads one of the subrecord’s fields.  const oldRec = scriptContext.oldRecord;        let subrecold = oldRec.getSublistSubrecord({       … Continue reading to retrieve address from address subrecord