Issue when suitelet page redirects to Netsuite Login

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.

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),

Suitelet Page For Resource Allocation

Scenario: We need to create a suitelet page for resource allocation. The suitelet page should contain similar pages like the same. The Body fields should contain, Project Name. Common project fields. The sublist structure should same as the below image. Solution We can use a client script for the validation and another suitelet for background… Continue reading Suitelet Page For Resource Allocation

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