New External URLs in Suitelets Deployment for NetSuite 2024.2
NetSuite 2024.2 introduces new External URLs for Suitelet deployments, enhancing how they are accessed. This is crucial for developers managing...
TL;DR Opening
Starting in NetSuite 2024.2, external URLs can now be found on the Script Deployment record of Suitelets that have the Available Without Login preference. This update is important for developers needing access to Suitelets in both trusted and untrusted contexts.
What's New
Overview of Changes
The ability to access Suitelet deployments has been improved in NetSuite 2024.2, allowing developers to interact with external URLs directly from the deployment record. These enhancements are beneficial for seamlessly integrating Suitelets into external applications.
Key Changes to Suitelets
- External URL Access: Suitelets configured with the Available Without Login preference can utilize a newly formatted external URL accessible from the script deployment record.
- Changes to Functions:
- url.resolveScript(options): Starting from July 30, 2024, this function will only provide external URLs in authenticated sessions. Ensuring it is only used in trusted contexts is essential to avoid errors.
- https.requestSuitelet(options): Effective June 13, 2024, this function will automatically support internal URLs within trusted contexts without needing to set the option.external parameter. From July 30, 2024, the use of option.external=true will no longer function.
Trusted vs. Untrusted Contexts
Understanding the differences between trusted and untrusted contexts is vital for correctly implementing these changes:
- Untrusted Contexts: Includes scenarios where client scripts run for users whose identity cannot be verified.
- Trusted Contexts: Covers external Suitelets accessed through the updated External URL or Suitelets used within authenticated sessions.
Who This Affects
This change impacts several roles in NetSuite:
- Developers: Those creating or maintaining Suitelets and scripts using url.resolveScript or https.requestSuitelet methods.
- Administrators: Responsible for managing script settings and preferences within the account.
Key Takeaways
- NetSuite 2024.2 introduces new ways to access Suitelet external URLs from the Script Deployment record.
- Changes to authentication handling for Suitelet access will enhance security and usage contexts.
- Developers must revise their scripts to accommodate these changes, particularly around URL resolution and requests.
- Understanding trusted versus untrusted contexts is crucial for successful Suitelet deployments.
Frequently Asked Questions (4)
Does the new External URL feature apply to both WMS and standard NetSuite?
Do I need to enable a feature flag for the new External URLs in Suitelets?
What permissions are required to access the new External URLs for Suitelets?
Will the new changes to external URLs affect existing workflows that use Suitelets?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements in NetSuite February Updates
SuiteScript 2.1 now supports async features and PATCH method. Discover the latest API and SuiteProcurement improvements.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
Also from NetSuite 2024.2
- Work Order Operation Hours Update in NetSuite 2024.2
NetSuite 2024.2 improves work order operation hours calculation, automating the process with key updates for efficiency.
- Advanced Revenue Management Configuration Changes in NetSuite
NetSuite 2024.2 changes Advanced Revenue Management in Configuration Mode, affecting revenue recognition workflows.
- Philippines Invoicing Enhancements in NetSuite 2024.2
NetSuite 2024.2 enhances Philippines Invoicing with NON-VAT introductions and EOPT compliance features, streamlining invoicing processes.
- SSL Support for Promotional URL Domains in NetSuite 2024.2
SSL support for promotional URL domains is now in NetSuite 2024.2, enhancing security for eCommerce transactions.
