Approve custom record using suitescrip

In NetSuite, the N/action module’s action.find function is used to locate a specific action (e.g., a custom button, workflow action, or standard action) on a record. This is particularly useful in Client Scripts or Suitelets when you need to dynamically check if an action exists or retrieve its details before performing operations, such as enabling/disabling… Continue reading Approve custom record using suitescrip

Overview of Record Action and Macro API

NetSuite records offer two alternatives for executing native NetSuite logic: a user either clicks a UI button or runs a script that calls the API corresponding to the button. These script and UI alternatives both produce the same results. Macro and action APIs provide ease and flexibility for your scripting. These APIs are supported for… Continue reading Overview of Record Action and Macro API

Sample Script to Confirm or Decline In-Transit Vendor Payment(Bill Payment)

Confirm In-Transit payment require([‘N/action’], function(action) action.execute({ recordType: ‘vendorpayment’, id: ‘confirm’, params: { recordId: 101, //exchangerate: ‘1.0’, //trandate: ‘5/10/2018’, //postingperiod: ‘243’, //clearpayment: ‘T’ } }); Decline In-Transit payment require([‘N/action’], function(action) action.execute({ recordType: ‘vendorpayment’, id: ‘decline’, params: { recordId: 101, //exchangerate: ‘1.0’, //trandate: ‘5/10/2018’, //postingperiod: ‘243’, //clearpayment: ‘T’ } });