Use enrichment rules to set field values in D365 F&SCM.
To set a field value, you can use several value types. This topic explains how to set up an enrichment rule line of type Custom.
Use a custom enrichment rule line to set a field value using a custom class.
Before you can set up a custom enrichment rule line, ensure that the custom class is developed.
| Name | Responsible | Description | 
|---|---|---|
| Develop custom action class | Developer | You can use a custom action rule to set a field value using a custom class. The custom class must extend the DQSCustomValidationBase base class. When you extend the DQSCustomValidationBase base class: 
 The base structure of an extended DQSCustomValidationBase class is: | 
| 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 line of type Custom | Data quality administrator | For an enrichment rule, use an enrichment rule line to set a field value. To set a field value, you can use several value types. Use the value type Custom to set a field value using a custom class. Before you can set up a custom enrichment rule line, ensure that the custom class is developed. You can add enrichment lines in these ways: 
 | 
| 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: 
 | 
| Name | Responsible | Description | 
|---|---|---|
| Develop custom action class | Developer | You can use a custom action rule to set a field value using a custom class. The custom class must extend the DQSCustomValidationBase base class. When you extend the DQSCustomValidationBase base class: 
 The base structure of an extended DQSCustomValidationBase class is: | 
| 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 line of type Custom | Data quality administrator | For an enrichment rule, use an enrichment rule line to set a field value. To set a field value, you can use several value types. Use the value type Custom to set a field value using a custom class. Before you can set up a custom enrichment rule line, ensure that the custom class is developed. You can add enrichment lines in these ways: 
 | 
| 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: 
 | 
| Related to | Notes | 
|---|---|
| Set up enrichment rule of type Custom |   |