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
- Common SuiteScript Errors and Solutions for NetSuite
Common NetSuite script errors include INVALID_SCRIPT_DEPLOYMENT_ID and SSS_AUTHORIZATION_HEADER_NOT_ALLOWED. Learn effective solutions.
- Setting Field Values in SuiteScript for Effective Record
Learn to set field values in SuiteScript effectively, troubleshooting common errors and understanding data types.
- SuiteScript 2.1 Enhancements and API Updates in NetSuite
SuiteScript 2.1 enables execution of 2.0 scripts and supports PATCH method for enhanced API capabilities.
- Enhancements to SuiteScript User Role Context Clarification
SuiteScript updates clarify the user and role contexts for script executions, improving deployment understanding and management.
Also from NetSuite 2024.2
- Localization SuiteApps Enhancements in NetSuite 2024.2
Enhanced Localization SuiteApps in NetSuite 2024.2 with features from the previous 2024.1 version.
- Additional Fields for International Shipping in NetSuite 2024.2
Explore additional fields for international shipping documents in NetSuite 2024.2, improving customs declarations and shipping processes.
- Correct Work Order Operation Dates in NetSuite 2024.2
In NetSuite 2024.2, work order operation dates adjust based on working hours, improving scheduling accuracy.
- SuitePeople Time Clock Mobile App Updates in NetSuite 2024.2
Learn about the SuitePeople Time Clock mobile app updates in NetSuite 2024.2, ensuring data sync and offline functionality.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category