Add members to Klaviyo list (Lost Lead sync)

Script: Userevent When creating the lost lead or lead record on after submit trigger will fetch the required details and post it to Klaviyo by API POST request. /** * @NApiVersion 2.1 * @NScriptType UserEventScript */ /************************************************************************************************ * * NetSuite – Klaviyo Integration Lost leads** * * User event script for reak time API integration… Continue reading Add members to Klaviyo list (Lost Lead sync)

Add custom values as the data sources to a template

We can pass custom objects, and XML values as data sources to a template instead of a single record data.Use the function TemplateRenderer.addCustomDataSource(options) for this. This is a part of the N/render module and is available for all server scripts(of the 2.x version).The parameters require are: ‘options.alias’ of string type which stores alias for the… Continue reading Add custom values as the data sources to a template

Make a copy of vendor or customer records using user event script.

To make a copy of vendor or customer records, the create context type can be used instead of copy context type in the user event script. In the user event script, beforeSubmit(scriptContext) entry point is selected. It is because in the view mode of the record, “Make a copy” option is not available in the… Continue reading Make a copy of vendor or customer records using user event script.