Locking Custom Objects in SuiteCloud Development Framework
Lock custom objects in SuiteCloud projects to control modifications, ensuring structural integrity across deployments.
Locking custom objects within the SuiteCloud Development Framework (SDF) is crucial for maintaining data integrity during SuiteApp deployments. This approach enables developers to specify which objects can be altered in target accounts, preventing unauthorized changes. The locking.xml file is pivotal in managing these settings.
How to Lock a Custom Object Using SDF
To lock a custom object, you define preferences in the locking.xml file. Here’s how you can lock a custom list example:
<preference type="LOCKING" defaultAction="UNLOCK"> <apply action="LOCK"> <object>customlist_example1</object> </apply></preference>In this example:
- The preference type is set to
LOCKING. - The default action is defined as
UNLOCK, meaning that without explicit actions, the object remains unlocked. - When an apply action of
LOCKis invoked, the specified custom object (customlist_example1) will be locked.
Lockable SDF Custom Objects
The ability to lock varies depending on the type of custom object. Here’s a breakdown of the lockable SDF custom object types:
| Object Type | Notes |
|---|---|
customlist | Locked lists do not allow adding, editing, or deleting values in target accounts. |
customrecordtype | - Cannot change or delete the locked custom record ID. |
- Original custom field IDs remain intact. |
|
customsegment| Lock must apply to both the custom segment and its associated custom record type. | |crmcustomfield| Custom fields can have controlled access through form customizations. | |plugins| Locked plugins can still be configured, but their original fields remain unchanged. | |savedsearch| Users can create copies of locked saved searches to modify filters and columns. | |workflow| Certain basic information fields can be edited, but you cannot alter the workflow definition or its core actions. |
Considerations When Locking
- Custom Lists: Ensure all necessary values are in place before locking a custom list since no additions or deletions will be allowed afterward.
- Custom Record Types: Be aware that while you can create new instances of custom records, any IDs associated with original records cannot be manipulated.
- Plugins and Scripts: Locking allows for consistency in versions, but developers should plan for future configurations since original custom field IDs cannot be modified once locked.
Knowing what can be locked and the implications of doing so will help maintain ordered project deployments and prevent disruption in client operations. Always evaluate the need for locking against operational requirements before implementing these restrictions.
Who This Affects
- Developers: Those who create custom applications using SuiteCloud will find locking critical for maintaining structure.
- Administrators: Administrators managing SuiteApps should implement and oversee these locking settings.
- Technical Leads: Ensuring best practices in code deployment through structured object management falls to tech leads.
Key Takeaways
- Locking prevents unauthorized changes to custom objects in target accounts.
- Modify the
locking.xmlto apply and manage lock preferences effectively. - Understanding the implications of locking different object types is essential for developers and administrators.
Frequently Asked Questions (4)
Do I need to enable a feature flag for locking custom objects in SDF in NetSuite 2026.1?
What permissions are required to lock custom objects in SuiteCloud Development Framework?
How does locking custom objects in SDF interact with existing custom list setups?
Will configuring custom object locking settings affect existing workflows in NetSuite?
Weekly Update History (1)
Updated the Lockable SDF Custom Objects section in Locking SDF Custom Objects in the SuiteApp Type of SuiteCloud Project to add prompt and textenhanceaction object types to the list of lockable object types in SuiteApps.
View Oracle DocsWas this article helpful?
More in SuiteCloud Development Framework
- SuiteCloud Developer Assistant: AI Coding Support in
SuiteCloud Developer Assistant enhances NetSuite development with AI-powered coding features, offering real-time assistance and SuiteScript generation.
- SuiteCloud CLI for Node.js: New Features Overview
Explore the new features of SuiteCloud CLI for Node.js, enhancing SuiteCloud project development with interactive tools.
- beforeUndeploy Installation Hook in NetSuite 2026.1
Introducing the beforeUndeploy installation hook in NetSuite 2026.1 for custom pre-uninstall logic in SuiteApps.
- SuiteCloud Developer Assistant Feature for Visual Studio
Discover the new SuiteCloud Developer Assistant integrated with Visual Studio Code for enhanced SuiteCloud project development.
Advertising
Reach SuiteCloud Development Framework Professionals
Put your product in front of NetSuite experts who work with SuiteCloud Development Framework every day.
Sponsor This Category