Clear Values In Copy Context

function pageInit(context) {       try {         let rec = context.currentRecord;         if (context.mode === ‘copy’) {           let lineCount = rec.getLineCount({ sublistId: ‘item’ });           for (let i = 0; i < lineCount; i++) {             rec.selectLine({ sublistId: ‘item’, line: i });             let woId = rec.getCurrentSublistValue({               sublistId: ‘item’,               fieldId: ‘custcol_jj_linked_wo’,             });             if (woId) {               rec.setCurrentSublistValue({                 sublistId: ‘item’,                 fieldId: ‘custcol_jj_linked_wo’,                 value:… Continue reading Clear Values In Copy Context

Copy a value to the item column

/** * @NApiVersion 2.1 * @NScriptType ClientScript * @NModuleScope SameAccount */ define([‘N/search’], (search) => { function fieldChanged (context) { try { const recInvoice = context.currentRecord; const stCurrField = context.fieldId; const stCurrSublist = context.sublistId; // Get UPC code of billing item if (stCurrSublist === ‘item’ && stCurrField === ‘custcol_billingitem’) { const billingitem = recInvoice.getCurrentSublistText({ sublistId: ‘item’,… Continue reading Copy a value to the item column

Copy to Account

Copy to Account is an administrator tool that copies a custom object between your accounts. Use Copy to Account to select a target account, choose dependencies, select record instances to include, then preview and deploy your custom record. The tool can copy one custom object (including dependencies and instances) at a time. To use Copy… Continue reading Copy to Account