Use enrichment rules to set field values and behavior in D365 F&SCM.
To set a field value or behavior, you can use several value types. This topic explains how to set up an enrichment rule line of type Enable/Disable.
Use an Enable/Disable enrichment rule line to disable or enable a field based on the value of another field.
Usually, for an an enrichment rule of type Enable/Disable, you apply:
Note:
This example explains how you can apply an enrichment rule line of type Enable/Disable. As an example, the credit rating of a customer is used.
Credit rating | Credit limit (value) | Credit limit (enabled/disabled?) |
---|---|---|
'Poor' | Default set to '1000' | Disabled |
Other than 'Poor' | Not set | Enabled |
For this example, three enrichment rules are required, each with an enrichment rule line on the Credit limit field:
Enrichment rule | Enrichment rule line | Condition | |||||||
---|---|---|---|---|---|---|---|---|---|
Table | Event | Source field | Target datasource | Target field | Value type | Value | Form | Enable field | |
CustTable | Source field modified | Credit rating | CustTable | Credit limit | Fixed value | 1000 | - | - | Enrichment rule is applied only if the Credit rating field is set to 'Poor'. |
CustTable | Source field modified | Credit rating | CustTable | Credit limit | Enable/Disable | - | CustTable | No | Enrichment rule is applied only if the Credit rating field is set to 'Poor'. |
CustTable | Source field modified | Credit rating | CustTable | Credit limit | Enable/Disable | - | CustTable | Yes | Enrichment rule is applied only if the Credit rating field is set to another value than 'Poor'. |
Name | Responsible | Description |
---|---|---|
Create enrichment rule |
Data quality administrator |
Use enrichment rules to set field values in D365 F&SCM. This topic explains how to create an enrichment rule. |
Set up target datasource |
Data quality administrator |
For an enrichment rule, you can set a field value in a target table that is different from the source table. As a target table, you can only use a table that is related to the source table. Set up the tables that you want to use as target table for the enrichment rule. Note: On creation of an enrichment rule, automatically, the source table is added as target table. |
Set up enrichment rule of type Enable/Disable |
Data quality administrator |
For an enrichment rule, use an enrichment rule line to set a field value or behavior. To set a field value or behavior, you can use several value types. Use the value type Enable/Disable to enable or disable a field based on the value of another field. |
Set up enrichment rule conditions |
Data quality administrator |
For each enrichment rule, you can set up conditions. The enrichment rule is only applied if the conditions are met. To define an enrichment rule condition, you use a query. The enrichment rule is applied only to the records that are found by the query.
You can use these types of queries:
|