Set up enrichment rule of type Enable/Disable

Prev Next

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 enrichment rule of type Enable/Disable, you apply:

  • The 'Source field modified' event.

  • A condition to define for which value of another a field is enabled or disabled.

Note

  • For a specific field, you can only set up one enrichment rule line for each enrichment rule.

  • If you set up an enrichment rule with a line to disable a field, you must also set up an enrichment rule with a line to enable the field.

Example:

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'.

Flow diagram

Note

In the flow diagram, clicking ‘Set up enrichment rule conditions’ opens the corresponding section under ‘Set up enrichment rules’.