Sometimes the user is not able to commit a line item via SuiteScript 2.0 Client Script. The reason why the line item is not committed on the script is because the forceSyncSourcing parameter retains its default value is false.We can resolve this by making forceSyncSourcing true. The forceSyncSourcing parameter indicates whether to perform field sourcing synchronously. If set to… Continue reading Sublist Line Item not Committing via SuiteScript 2.0 Client Script
Tag: Suitescript2.0
Sales order Customization
Jira : BP-33 This task summarizes the email sending process while placing an order from the webstore. When a customer reaches the checkout page, the shipping cost will be taken as zero for all the customers. Website checkout page will show a message like ‘There will be a shipping cost and our sales rep will… Continue reading Sales order Customization
Location Validation In Purchase Order
Location Validation In Purchase Order
Sample Suitelet – User interface Form
/** * @NApiVersion 2.1 * @NScriptType Suitelet */ /** * Simple form with Name field – Say hello */ define([‘N/ui/serverWidget’], /** * @param{serverWidget} serverWidget */ (serverWidget) => { /** * Defines the Suitelet script trigger point. * @param {Object} scriptContext * @param {ServerRequest} scriptContext.request – Incoming request * @param {ServerResponse} scriptContext.response – Suitelet response *… Continue reading Sample Suitelet – User interface Form
Searching related GL impact in suiteScript
Search Exception – Employee center
We cannot perform an Employee saved search or lookup in the Employee center as the employee center has no permission to do the same. While deploying a script to every role which includes employee lookup/employee search we need to give a proper exception to handle it otherwise it results in an JS_EXCEPTION
Assigning Multiple subsidiaries to a Vendor using suiteScript – Bulk upload
We cannot change the primary subsidiary of the vendor once the transactions are posted. But we can assign a number of secondary subsidiaries at any time after the vendor is created We can manually assign the same by editing vendor records.But for bulk changing it is not possible to edit and save each record.For that… Continue reading Assigning Multiple subsidiaries to a Vendor using suiteScript – Bulk upload
Get only receive items in the item receipt
This code will help to get only selected items from the item receipt before submit context from the item sublist.
Return Value From Array Using Value of Another Key
The following function can be used to return value from an array by giving another key and value.
Cookies inside SuiteScript
Function to read cookie Function to clear or delete existing cookies Function to set cookie