Policies and rules properties in Table Builder
Summarize
Summary of Policies and Rules Properties in Table Builder
The Table Builder allows ServiceNow customers to configure field policies and rules, enhancing form behavior based on user roles and inputs. This setup includes UI Policies, Access Control Rules, Client Scripts, Business Rules, and Workspace View Rules, each serving specific functionalities to streamline user interactions and data management.
Show less
Key Features
- UI Policies: Control form appearance and behavior based on user inputs and roles. You can set conditions for actions like making fields mandatory or visible.
- Access Control Rules: Define user access to forms and data based on roles and conditions, ensuring that only authorized users can perform certain actions.
- Client Scripts: Automate field behaviors based on specific triggers, such as changes or form loads, to improve user experience.
- Business Rules: Automate backend processes like changing field values or controlling record insertions based on defined conditions.
- Workspace View Rules: Manage how users view and interact with workspaces, including navigation options and default tab orders.
Key Outcomes
By effectively using these policies and rules, ServiceNow customers can:
- Enhance form usability and ensure data integrity through tailored UI Policies.
- Maintain security and proper access controls with Access Control Rules.
- Automate processes and reduce manual errors using Client and Business Rules.
- Create a user-friendly workspace experience that aligns with organizational requirements.
Overall, implementing these features can lead to improved operational efficiency and user satisfaction within the ServiceNow platform.
You can configure the basic field policies and rules for any field that you work with in Table Builder.
UI Policies
The UI Policies section enables you to configure how forms appear based on roles and user input.
To understand the basic field properties, see Create a UI policy in Table Builder.
| Field | Description |
|---|---|
| Short description | Short summary of the UI policy. |
| Table | Data table that the policy applies to. |
| Domain | Domain that the choice resides in. |
| Order | Sequence for processing, from the lowest number to the highest number. If two policies conflict, the UI policy with the higher number runs. For inherited UI policies, the extended (child) table's UI policies run first. Then, the base table UI policies run, both from the lowest to the highest specified value. |
| Active | Status of the UI policy. Only active UI policies are applied. |
| Apply to all views/Apply to view [Advanced settings] | Option for specifying whether the UI policy applies to all form views or specific views. For more information on form views, see View management. |
| On load [Advanced settings] | Option for specifying that the UI policy behavior should be performed OnLoad as well as when the form changes. Check or clear the UI policy On load check box to
control whether it runs every time a form is loaded and conditions are
satisfied. In the following example, an administrator does not want an incident
to enter the Awaiting user info state unless the user
provides an explanation to the customer. The administrator creates a UI policy
with the following settings:
|
| Reverse if false [Advanced settings] | Option for specifying that the UI policy action should be reversed when the conditions of its UI policy evaluate to false. When the conditions are true, actions are taken and when they change back to false, the actions are reversed (undone). |
| Inherit [Advanced settings] | Option for specifying whether extended tables inherit this UI policy. When a child table has an inherited UI policy from its parent table, the UI
policy on the child table always runs first, regardless of the
Order of the UI policies. In the following example:
|
| Field | Description |
|---|---|
| Condition set | Conditions that, if fulfilled, cause the UI policy to be applied. Conditions are built with the condition builder by using logic statements. To set conditions using a script, use a client script instead. Conditions are only rechecked if a user manually changes a field on a form. If the change is made by a UI action, context menu action, or through the list editor, it is not evaluated. |
| Field | Description |
|---|---|
| Field name | Field on the selected table to which the UI policy performs an action if
conditions are met. Note: If the specified field is not on the form, the UI
policy performs the action on the variable with the same name. |
| Mandatory | List for specifying how the UI policy affects the required state of the field.
The choices are the following:
|
| Visible | List for specifying how the UI policy affects the visible state of the field,
that is, whether it appears. The choices are the following:
|
| Read only | List for specifying how the UI policy affects the read-only state of the field.
The choices are the following:
|
| Clear the field value | Option to clear the specified field if the conditions are met. |
Access control rules
The Access control rules section enables you to configure access to the specified resource based on role, condition, and script criteria being met.
| Field | Description |
|---|---|
| Name | Names each user who has permission to access the form or data.
|
| Description | Overview of what the access control rule restricts or enables. |
| Type | Type of object the access controls, including the following:
|
| Operation | Type of action the system can take on the specified object, such as delete or execute. Some objects, such as records, support multiple operations, while other objects, such as a REST_Endpoint, only support one operation. For more information on action types, see ACL rule types. |
| Active | Active state of the rule:
|
| Condition | Any conditions that apply to the rule. |
| Roles | Any roles the rule applies to. |
| Admin overrides | Option to force the rule's evaluation for admin overrides at the access level. For more information on admin overrides, see Evaluate the admin override at the access level. |
| Advanced | Option to associate a script with the rule. |
Client Scripts
The Client Scripts rules section enables you to create scripts that control how form fields appear based on defined criteria.
For a complete list of values for client script fields, see Client script form
| Field | Description |
|---|---|
| Name | Name for the script. |
| Description | Overview the script's functionality and purpose. |
| Table | Table or form that the script is available for. |
| Active | Active state of the script:
|
| UI type | Type of application the script is available for, such as desktop or mobile. |
| Type | When the script runs on the table or form, including the following:
|
| Field name | Field the script is run on. |
| View | Views on which the client script runs (not applicable to global scripts). |
| Inherited | Indicates whether the client script applies to extended tables. |
Business Rules
The Business Rules section enables you to create business rules to accomplish tasks like automatically changing values in form fields when certain conditions are met.
For a complete list of values for business rules, see Create a business rule.
| Field | Description |
|---|---|
| Name | Name for the business rule. |
| Table | Table or form that the business rule runs on. |
| Active | Active state of the business rule:
|
| When | When the business rule executes: display, before, async, or after the database operation is complete. |
| Filter conditions | Conditions created using the condition builder to determine when the business rule should run based on the field values in the selected table. |
| Role conditions | Roles that users who are modifying records in the table or form must have for the business rule to run. |
| Actions | Actions taken by the business rule on the specified fields, such as insert, update, and delete. |
| Set field values | Table or form fields that the action executes on. |
| Add message | Whether a message appears when this business rule is run:
|
| Abort action | Whether the business rule aborts the current database transaction:
|
| Order | Indicates the sequence in which this business rule should run. If there are multiple rules on a particular activity, the rules run in the specified order specified, from lowest to highest. |
Workspace view rules
The Workspace view section enables you to define rules to control how users view workspaces based on criteria.
| Field | Description |
|---|---|
| Name | Name for the workspace view rule. |
| Table | Table or form that the workspace view rule is available for. |
| View | View that is used to render the form. The default view is used if this field is left empty or contains an invalid value. |
| Roles | Any roles the rule applies to. |
| Conditions | Any conditions that apply to the rule. |
| Hide section navigation | Option to enable or disable section navigation. |
| Disable section collapsing | Option to enable or disable section collapsing. |
| Default tab order | Order in which form tabs appear by default. |