We can add a User Event – beforeLoad on the Message record to auto populate the custom fields from the custom record to the Email popup. Use the below code to set the value. /** * @NApiVersion 2.1 * @NScriptType UserEventScript */ /******************************************************************************************************************** * * Magswitch Technology-USA-NS * * MAGT-1224 : Multiple Email Population in… Continue reading How to automatically Populate NetSuite’s Email Composer with Additional Recipients Sublist?
Author: Aranya T R
How to combine 3 pdf’s into single pdf in suitelet script 2.0?
This is suitelet script which generates n different pdf’s for n work orders. Now instead of printing different pdf’s for each work order data, I want to print single pdf and show different work order data on different pdf page on the same single pdf. Solution Essentially with a set you will want each pdf… Continue reading How to combine 3 pdf’s into single pdf in suitelet script 2.0?
Redirecting to a Record from Suitelet on a button Click
To return the new purchase order internal id from your suitelet you will need to write it on the response : response.write(purchaseOrderId); You can catch that value from your client side script : var response = nlapiRequestURL(url); // run response validation if (response.getCode() == 200) { var purchaseOrderId = response.getBody(); } Then you can redirect to your purchase order… Continue reading Redirecting to a Record from Suitelet on a button Click
How to Resolve Error “Your current role does not have permission to perform” in REST API
Issue We are getting below error in postman Get call with custom role for Sales Invoice https://xxxxxxxx.suitetalk.api.netsuite.com/services/rest/record/v1/invoice/ error :Your current role does not have permission to perform this action.”, There is no error with custom role if we give invoice number as below https://xxxxxxxx.suitetalk.api.netsuite.com/services/rest/record/v1/invoice/12632 No error if we run with Admin role I able to access invoice list using custom role in UI screen but… Continue reading How to Resolve Error “Your current role does not have permission to perform” in REST API
How to add country based validations in Address form?
Requirement When adding a new [billing or shipping] address, can we remove all the countries except Canada and United States? Solution To implement country-based validation on address records, a client script can be created and attached to the custom code section of the custom address form. This script ensures that users can only select “United… Continue reading How to add country based validations in Address form?
How to Allocate a Slight Overpayment and Round Off in a Single Customer Payment Entry?
Requirement I have a customer invoice in NetSuite with an amount of 3,475.50, but the customer paid 3,476.00. I want to apply 3,475.50 to the invoice and allocate the extra 0.50 as a rounding adjustment, all within a single Customer Payment entry. However, I do not see any option for Write-off or Discount on the Customer Payment page. I am logged in as Administrator, so permissions shouldn’t be… Continue reading How to Allocate a Slight Overpayment and Round Off in a Single Customer Payment Entry?
Apply Before Sales Tax checkbox is missing from Discount Item
The Apply Before Sales Tax checkbox becomes available after the Advanced Taxes feature is enabled. This is done by: 1) Navigate to Setup > Company > Enable Features. 2) Under Accounting tab, mark the Advanced Taxes checkbox. 3) Click on Save.
Invoice Advanced PDF/HTML Template with Subsidiary Address
To print the subsidiary address on an invoice Advanced PDF/HTML template, instead of the company address information, follow these steps: Create a Custom Transaction Body Field with sourced address information: Navigate to Customization > Lists, Records & Fields > Transaction Body Fields > New. Provide Label (e.g. Subsidiary Address). Set ID to _subsidiary_address. Set Type to Text Area. Un-check Store Value. In the Applies To tab, check Sale. In the Sourcing & Filtering tab,… Continue reading Invoice Advanced PDF/HTML Template with Subsidiary Address
How to solve the error SUITESCRIPT_API_UNAVAILABLE_IN_DEFINE when uploading the file to NetSuite?
Issue I encountered the error **SuiteScript_API_Unavailable_in_Define** while uploading my script to NetSuite, despite using API version 2.1 Solution This PASSES syntax checks and SUCCEEDS to upload to NetSuite: The only difference is moving the reference to N/format inside the main function.
Resolve Error: “Cannot process determined Credit operation…” When Processing a Refund
Scenario When entering a Customer Refund for a credit card from the following scenarios: from a Credit Memo record and only the card details are entered but not the P/N Ref. number; as a Standalone (e.g. from Transactions > Customers > Issue Customer Refund) where P/N Ref. is not provided; or any situation where a refund is entered without a P/N Ref. number The following error… Continue reading Resolve Error: “Cannot process determined Credit operation…” When Processing a Refund