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.
Was this article helpful?