Locking Custom Objects with SDF in NetSuite
Learn how to lock custom objects using SDF in NetSuite, enhancing security and control over SuiteApp deployments.
Locking custom objects in SuiteCloud Development Framework (SDF) enhances security and control for SuiteApp deployments. This article explains how to implement locking preferences in your locking.xml file and discusses the implications for various custom object types. Understanding these aspects is vital for developers looking to manage custom objects effectively.
How to Lock a Custom Object Using SDF
To lock a custom object in an SDF project, you can define locking preferences in a locking.xml file. Below is an example of how to lock a custom object, specifically a custom list.
XML Example
The following code snippet illustrates the locking setup for the customlist_example1 object:
<preference type="LOCKING" defaultAction="UNLOCK"> <apply action="LOCK"> <object>customlist_example1</object> </apply></preference>Lockable SDF Custom Objects
Certain custom objects can be locked within SDF. The following table summarizes the various SDF custom object types that can be locked along with the impact of locking:
| Object Type | Notes |
|---|---|
customlist | Values cannot be added, edited, or deleted in locked custom lists in target accounts. |
customrecordtype | - ID of a locked custom record cannot be changed or deleted. |
- Original custom field IDs cannot be changed or deleted.
- Custom fields cannot be added. |
|
customsegment| Locking requires applying the lock to both the custom segment and its associated record type. | | Custom Fields | Administrators can control access via form customization. | | Forms | New instances can be created and customized. | | Plug-ins | Locked plug-ins can be configured; original custom field IDs on scripts cannot be deleted. | |prompt| Locked prompts show a Customize link instead of Edit; changes are restricted. | |savedsearch| Users can create copies and customize filters and columns. | | Workflows | Basic information can be edited, but definitions and states cannot be altered. |
Who This Affects
- Developers: Understanding locking practices is essential to ensuring functionality and security of SuiteApps.
- Administrators: Will need to manage permissions regarding locked objects effectively.
Key Takeaways
- Locking custom objects enhances security in SuiteCloud Development Framework deployments.
- The
locking.xmlfile is crucial for implementing object locks effectively. - Different custom objects have varying restrictions when locked, affecting how they can be managed across deployments.
Source: This article is based on Oracle's official NetSuite documentation.
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 Development Framework in NetSuite 2026.1
SuiteCloud Development Framework features in NetSuite 2026.1 enhance customization, deployment, and management for developers.
- SDF Enhancements for NetSuite 2026.1
Discover SDF enhancements in NetSuite 2026.1, featuring new tools and productivity improvements for developers.
- SuiteCloud Extension for Visual Studio Code in NetSuite
SuiteCloud Extension for Visual Studio Code enhances NetSuite development with local coding, testing, and deployment features.
- SuiteCloud CLI for Java in NetSuite 2026.1
SuiteCloud CLI for Java enhances development workflows in NetSuite 2026.1. Discover its features and benefits.
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