Loading
Business Rules Engine
목차
필터 선택

          결과 없음
          결과 없음
          몇 가지 검색 팁

          키워드의 맞춤법을 확인하십시오.
          더 일반적인 검색 용어를 사용하십시오.
          필터 수를 줄여 검색 범위를 확장하십시오.

          전체 Salesforce 도움말 검색
          Consume Decision Tables Asynchronous Events with Apex Code

          Consume Decision Tables Asynchronous Events with Apex Code

          Trigger actions by using Apex code when decision table operations complete asynchronously.

          Required Editions

          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

          1. Open the Developer Console.
          2. Click Create New
          3. Click Apex Trigger.
          4. Select DecisionTableActionEvent.
            Select the DecisionTableActionEvent to trigger a Platform-Event Triggered Flow when decision table operations complete asynchronously.
          5. Add the provided trigger code:
            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);
            }
            }
            
          6. Save the trigger.

          To trigger the event, activate your decision table.

          To make sure that the event is consumed, in Debug Logs:

          • Set Traced Entity Type to Automated Process:
          • Set Apex logging to FINER or FINEST.
          • Set the Expiration Date to a future date.
           
          로드 중
          Salesforce Help | Article