scenario: Generate a Suitelet form and automatically populate the sales representative field with the sales representative of the customer if the provided email address corresponds to an existing customer. solution: /** * @NApiVersion 2.1 * @NScriptType Suitelet */ define([‘N/record’, ‘N/search’, ‘N/ui/serverWidget’], /** * @param{record} record * @param{search} search * @param{serverWidget} serverWidget */ … Continue reading Generate a Suitelet form and automatically populate the sales representative field.