Issue The suitelet page will redirect to netsuite login page when open by clicking on suitelet URL Solution The suitelet page will open without redirecting to Netsuite Login page when the returnExternalUrl is set to true while calling the suitelet script from any other scripts. Following is the code snippet to set it true.
Tag: suitelet
suitelet customer record load and getvalue
Generate a PDF file for a transaction record in a suitelet.
Create an xml file of the printing template.Store it in file cabinet /** * @description function for rendering pdf file * @param {filePath} specify the file path for the xml file for pdf template(/suitescript/template/…/name.xml) * @param {recType} specify the record type (salesorder/estimate/invoice….) * @param {Id} internal Id of the record to be printed. */ function… Continue reading Generate a PDF file for a transaction record in a suitelet.
Error: Wrong parameter type: expected as boolean.
Reason: Netsuite will only accept the boolean in the form of ‘TRUE’ or ‘FALSE’ So before using the variable convert it to Boolean type. eg: consolidateStatements:Boolean(scriptContext.request.parameters.custrecord_jj_stmnt), openTransactionsOnly:Boolean(scriptContext.request.parameters.custrecord_jj_opentrnsn),
Delay the closing of the suitelet page after submission
Requirement We need to delay the closing of the suitlet page for 3 seconds after clicking the submit button Solution The following code snippet can be provided at the end of the suitelet script for to wait 3 seconds for closing the suitelet window
Adding invoice download link in suitelet
Requirement We need to add a download link for each invoices or credit memo displayed in the suitlet page. When clicked on the invoice download link, user should be able to navigate to the page from which invoice or credit memo can be downloaded or printed. Solution The download url can be provided as the… Continue reading Adding invoice download link in suitelet
Populating the files of a folder in file cabinet to select option in Suitelet page
Requirement We need to display the files of any type from a particular folder in file cabinet to the select options in suitelet page. Solution A saved search created to fetch the files from a folder (internal id :1635) in file cabinet. Then this files can be populated in the options of the select field… Continue reading Populating the files of a folder in file cabinet to select option in Suitelet page
Automated Emails For Invoices And Credit Memo
The invoice emails including the credit memo and invoices will be sent on a scheduled basis. The requirement can be achieved by creating a custom record for scheduling purposes. The process will work as follows: A custom record will be created containing the following fields – Author Email Template Email Subject Email Body
PM Review for MPCR in employee center
Requirement Need to create a custom page to list all the mpcr that are open status and the current user is the corresponding project manager (Body or Line). The user is able to select the mpcr and click submit button and the corresponding PM review checkbox will be checked and the corresponding custom fields :… Continue reading PM Review for MPCR in employee center