You are here:
Consume Decision Tables Asynchronous Events with Apex Code
Trigger actions by using Apex code when decision table operations complete asynchronously.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Trigger actions by using Apex code when decision table operations complete asynchronously.
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled |
| User Permissions Needed | |
|---|---|
| To create, edit, and activate a decision table: | Rule Engine Designer |
| To run decision tables: | Rule Engine Designer OR Rule Engine Runtime |
trigger deci on DecisionTableActionEvent (after insert) {
for (DecisionTableActionEvent event : Trigger.new) {
// Log the event details to the debug log
System.debug('*** APEX DecisionTableActionEvent received! ' +
'Event ID: ' + event.DecisionTableApiName +
', Event Message: ' + event);
// Add more debug statements for specific fields based on your requirements
// Example: System.debug('New Status: ' + event.New_Status__c);
}
}
To trigger the event, activate your decision table.
To make sure that the event is consumed, in Debug Logs:

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.