When setting up OAuth 2.0 integrations in NetSuite, there may be scenarios where you need to share the integration credentials with someone who does not have direct access to the NetSuite account. To securely enable this, NetSuite provides an OAuth 2.0 Consent Policy during the creation of the integration record. By selecting the appropriate consent… Continue reading How to Share OAuth 2.0 Integration Credentials in NetSuite Without Granting Account Access
Month: March 2025
How to Avoid Using a Saved Search on Field Change in a NetSuite Client Script
Using a saved search within the fieldChanged function of a NetSuite client script can lead to performance issues and script delays. Every time a field is modified, the saved search is triggered, which may cause unnecessary load on the system, especially when handling large datasets or frequent field changes. To improve script efficiency and avoid… Continue reading How to Avoid Using a Saved Search on Field Change in a NetSuite Client Script
How to add a delay to a Dell Boomi flow using data process
When making API calls within a Boomi flow, if multiple requests are triggered simultaneously and the API does not support concurrent calls, resulting in errors, you can mitigate this by using a combination of a flow control block and a data process block. By adjusting the delay in the script, you can ensure an appropriate… Continue reading How to add a delay to a Dell Boomi flow using data process
Proposal For Update Website with New Version (SCA 2024.2) and Domain-Specific
Proposal Summary This proposal covers the scope of updating the current website setup to support multiple domains based on subsidiaries while ensuring that the required customizations and extensions function appropriately for each domain. Additionally, the website needs to be upgraded from SCA 2019.1 to SCA 2024.2, ensuring that all customizations and features are compatible… Continue reading Proposal For Update Website with New Version (SCA 2024.2) and Domain-Specific
How to approve a custom record using client or user event script
let actions = action.find({ recordType: ‘timebill’, recordId: recordId }); log.debug(“We’ve got the following actions: ” + Object.keys(actions)); if (actions.approve) { let result = actions.approve(); log.debug(“Timebill has been successfully approved”); } else { log.debug(“The timebill is already approved”); }
Updating Object Values Without Changing the Original in NetSuite JavaScript
In JavaScript, when you assign an object to a new variable, it creates a reference, not a copy. Any changes made to the new variable will also affect the original object. To avoid this, use the spread operator { …object } to create a separate copy. For example: let fields = { custrecord_project_status: 23, charityStatus:… Continue reading Updating Object Values Without Changing the Original in NetSuite JavaScript
What is SAML Single Sign-on?
SAML (Security Assertion Markup Language) is an XML-based standard that supports communication of user data among various applications, called service providers (SPs).An identity provider (IdP) makes security assertions consumed by SPs. A single IdP can perform user authentication for many SPs. A particular SP and an IdP can establish a circle of trust by providing… Continue reading What is SAML Single Sign-on?
Sample 2.0 Script that will set the Revenue Rec Start Date and Revenue Rec End Dates within Item Members based from the Item Group
Scenario User would like a script that sets the Revenue Start Date and Revenue End Date of the Item Members based on the Item Group Solution Sample Script var itemName; var itemType; var isGroup = “F”; //will serve as a flag var revrecstartdate; var revrecenddate; var objRecord = scriptContext.newRecord; var itemCount = objRecord.getLineCount({ sublistId: “item”… Continue reading Sample 2.0 Script that will set the Revenue Rec Start Date and Revenue Rec End Dates within Item Members based from the Item Group
Customize Print Item Labels Page Throws an Unexpected Error
Scenario: 1. Navigate to Transactions > Management > Print Checks and Forms 2. Click Item Labels 3. Click Customize button 4. Add Columns and Filters as preferred. 5. Click Save 6. An Unexpected Error appears. Note: User can no longer open the Print Item Labels Page unless a new role is used. Solution 1. User can enter… Continue reading Customize Print Item Labels Page Throws an Unexpected Error
Use of ‘decodeURIComponent’ in NetSuite
In NetSuite, the ‘decodeURIComponent’ function is used to decode URL-encoded parameters, converting them back to their original format. This is useful when retrieving query string values in SuiteScript that were previously encoded using encodeURIComponent. For example: The decoded value of the given encripted data is given below, Encrypted data or Encoded data: %7B%22relatedProjects%22%3A%5B%222709%22%5D%2C%22fields%22%3A%7B%22custrecord_project_status%22%3A10%2C%22custrecord_project_parent_charity_status%22%3A%2210%22%7D%2C%22newCharityStatus%22%3A%2210%22%2C%22PROJECT_COMPLETED%22%3A6%2C%22INELIGIBLE_CHARITY_STATUS%22%3A%5B9%2C7%2C8%2C12%5D%2C%22SUSPENDED%22%3A%5B10%5D%7D Decrypted data… Continue reading Use of ‘decodeURIComponent’ in NetSuite