Use a field security policy to define for which forms, tables, or fields editing is locked or allowed.
If the form mapping is recorded and applied to a field security policy, and you have edited the table setup and field setup, define the applicable conditions.
In the condition setup, you define how the policy is applied.
To define a condition, you can use one of these options:
Inquiry: Use a D365 F&SCM inquiry to define the condition.
Dynamic query: Use a query from the Dynamic query framework to define the condition.
The security level defines how to set up the policy and how it is applied:
Security level | Description | Field setup | Condition setup |
|---|---|---|---|
Table | Editing is locked or allowed for the whole table. | Only define one field setup record if you want to apply conditions. For this field setup record, these fields must be empty: Field name, Control name, and Dimension name. The settings of the Default action field and Skip field are not considered. | You can only apply generic conditions, for example, on user or role. |
Table field | Editing is locked or allowed for specific table fields. | Define the desired field setup records. The settings of the Default action field and Skip field are considered.
| For each field setup record, you can define the desired conditions. You can only apply generic conditions, for example, on user or role. |
Record | Editing is locked or allowed for the whole record. | Define one field setup record. For this field setup record, these fields must be empty: Field name, Control name, and Dimension name. The settings of the Default action field and Skip field are not considered. | Apply conditions to define the records to which the policy applies. Define the conditions based on record data. For example, editing a record is only allowed if the:
|
Record field | Editing is locked or allowed for specific record fields. | Define the desired field setup records. The settings of the Default action field and Skip field are considered.
| Apply conditions to define the records to which the policy applies. Define the conditions based on record data. For example, editing a record field is only allowed if the:
|
Steps
Go to Dynamic field security management (Preview) > Policies > All field security policies.
In the list, click the link of the desired field security policy.
Click Edit.
Expand the Table setup section.
In the list, find and select the desired record.
Expand the Field setup section.
In the list, find and select the desired record.
Expand the Condition setup section.
Sub-task: Set up inquiry condition.
Click Add.
In the Description field, type a value.
In the Query type field, select 'Inquiry'.
By default, the query base table is the table of the selected policy. If desired, you can change it.
In the Query base table field, enter or select a value.
Define the inquiry in the Inquiry dialog.
Click Edit query.
Click OK.
Sub-task: Set up dynamic query condition.
Click Add.
In the Description field, type a value.
In the Query type field, select 'Dynamic query'.
In the Custom query field, enter or select a value.
You can (temporary) stop applying a condition.
Select the Skip check box.
Notes
You can only edit an inactive field security policy.