Loading
메일 전송 도메인 확인 상태 안내더 많이 읽기
Business Rules Engine
목차
필터 선택

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

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

          전체 Salesforce 도움말 검색
          Invocable Actions

          Invocable Actions

          You can invoke decision matrices and expression sets—the Business Rules Engine components—by using Apex or REST API.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled

          Apex Classes

          To invoke expression set and decision matrix actions using Apex, use the Invocable namespace, which contains the required classes and methods. See Invocable Namespace.

          To call expression sets that have a context definition, you must first hydrate the context definition and then use Context IDs that you use to hydrate context data in the payload. See Create a Context Definition

          Important
          Important Apex runs in system context, which overrides the user's current permissions. Ensure that you manage user permissions to prevent users without the necessary permission sets from accessing expression sets and decision matrices.
          Example
          Example Invoking an expression set with Apex:
          Invocable.Action action = Invocable.Action.createCustomAction('runExpressionSet', 'ESTest');
          action.setInvocationParameter('v1', 20);
          action.setInvocationParameter('v2', 2);
          List<Invocable.Action.Result> results = action.invoke();
          Invoking an expression set with context definitions with Apex:
          Invocable.Action action = Invocable.Action.createCustomAction('runExpressionSet', 'ESTest');
                  action.setInvocationParameter('v1', 20);
                  action.setInvocationParameter('v2', 2);
                  action.setInvocationParameter('PricingContextId', <HydratedContextId>);
                  List<Invocable.Action.Result> results = action.invoke();
          Invoking a decision matrix with Apex:
          Invocable.Action action = Invocable.Action.createCustomAction('runDecisionMatrix', 'SampleMatrix);
          action.setInvocationParameter('v1', 20);
          action.setInvocationParameter('v2', 2);
          List<Invocable.Action.Result> results = action.invoke();
          Invoking a decision table with Apex:
          Invocable.Action action = Invocable.Action.createCustomAction('decisionTableAction', 'TestDTAsset_Default');
          List<Map<String, Object>> bulkInput = new List<Map<String, Object>>();
                  for(Integer i = 0; i<2; i++)
                  {
                      Integer newInput1 = 101; 
                      Integer newInput2 = 101;
                      Map<String, Object> input = new Map<String, Object>();
                      input.put('Price', newInput1); 
                      input.put('Quantity', newInput2);  
                      bulkInput.add(input);
                  }
          action.setInvocations(bulkInput);
          List<Invocable.Action.Result> results = action.invoke();
          system.debug(results);
           
          로드 중
          Salesforce Help | Article