본문 바로가기
Salesforce

[세일즈포스] 일정에 따라 트리거되는 흐름 고려 사항 Schedule-Triggered Flow Considerations

by clove17 2023. 9. 17.
728x90
반응형

 

일정에 따라 트리거되는 흐름 고려 사항

일정에 따라 트리거되는 흐름은 레코드 배치에 대해 지정된 시간과 빈도에 시작됩니다. 예약된 흐름이라고도 하는 일정에 따라 트리거되는 흐름의 고려 사항과 특수 동작을 이해합니다.

 

필수 에디션

사용 가능 제품: Salesforce Classic 및 Lightning Experience 모두
가능:Essentials , Professional , Enterprise , Performance , Unlimited  Developer Edition

 

이러한 고려 사항은 일정에 따라 트리거되는 흐름에 적용됩니다.

  • 일정에 따라 트리거되는 흐름은 지정된 시간과 빈도로 시작됩니다. 다른 방법으로는 일정에 따라 트리거되는 흐름을 시작할 수 없습니다.
  • 시작 시간 필드 값은 Salesforce 조직의 기본 시간대를 기반으로 합니다.
  • 트리거가 있는 자동 실행 흐름을 활성화하려면 모든 데이터 보기 권한이 필요합니다.
  • 24시간당 일정에 따라 트리거되는 흐름 인터뷰의 최대 수는 250,000개이거나 조직의 사용자 라이선스 수에 200을 곱한 값 중 더 큰 값입니다. 일정에 따라 트리거되는 흐름의 쿼리로 검색된 각 레코드에 대해 하나의 인터뷰가 생성됩니다.
  • 흐름이 레코드 일괄 처리에 대해 실행되도록 개체를 지정하는 경우 이 제한에 도달하지 않도록 시간, 빈도 및 레코드 조건을 설정하십시오. 디버그 로그를 사용하여 일정에 따라 트리거되는 흐름이 실행되는 레코드 수를 확인할 수 있습니다. SCHEDULED_FLOW_DETAIL 이벤트로 레코드 수를 추적합니다. 조직이 제한에 도달하면 Salesforce에서 플로 오류 이메일을 보냅니다.
  • 설정의 예약된 작업 페이지에서 일정에 따라 트리거되는 흐름을 삭제하면 해당 흐름의 향후 모든 반복이 취소됩니다. 향후 실행을 활성화하려면 흐름을 비활성화하고 다시 활성화하십시오.
  • 이미 지나간 날짜와 시간에 흐름이 한 번 실행되도록 예약된 경우 흐름은 실행되지 않습니다.
  • 자동화된 프로세스 사용자는 일정에 따라 트리거되는 흐름을 실행합니다.
  • Apex 코드를 호출하기 위해 일정에 따라 트리거되는 플로가 필요한 경우 플로에서 호출되는 Apex 클래스에 대한 사용자 액세스 필요 업데이트를 활성화하지 마십시오. 해당 릴리스 업데이트가 활성화되면 Apex를 호출할 때 일정에 따라 트리거되는 흐름이 실패합니다.
  • 일정에 따라 트리거되는 흐름은 대기 요소를 실행한 후에만 콜아웃을 만들 수 있습니다. 예를 들어 대기 요소가 없으면 플로는 외부 개체에 액세스할 수 없고 콜아웃을 만드는 Apex 작업을 실행하거나 외부 서비스 등록에서 생성된 작업을 실행할 수 없습니다.
  • 팁 잠시 동안만 흐름을 일시 중지하는 대기 요소를 삽입할 수 있습니다. 특정 시간을 시간 소스로 사용하여 지정된 시간까지 일시 중지되도록 재개 이벤트를 구성합니다. 기본 시간의 경우 $Flow.CurrentDateTime전역 변수를 지정합니다. 그런 다음 오프셋을 0시간으로 설정합니다. 런타임 시 이러한 방식으로 설정된 대기 요소는 일반적으로 1분 미만 동안 흐름을 일시 중지합니다.
  • $Record 전역 변수의 ID와 모든 필드 값을 사용하도록 레코드 업데이트 요소를 구성하는 경우흐름 요청에서 액세스할 수 없는 필드 필터링조직의 프로세스 자동화 설정에서. 그렇지 않으면 레코드 업데이트 요소가 시스템 필드 및 기타 읽기 전용 필드에 대한 값을 설정하려고 하기 때문에 흐름이 실패합니다.
  • 여러 필터를 정의하는 경우 필터 논리는 일반적으로 AND로 기본 설정됩니다. 그러나 여러 필터에 동일한 필드가 선택되어 있고 같음 연산자를 사용하는 경우 필터는 OR로 결합됩니다.
  • 예를 들어 필터는 사례 유형이 문제(1), 유형이 기능 요청(2), 에스컬레이션이 참(3)인지 여부를 확인합니다. 런타임 시 필터는 (1 OR 2) AND 3.
  • 자동 실행 흐름에서는 화면 흐름을 참조할 수 없습니다.

 

Schedule-Triggered Flow Considerations

A schedule-triggered flow starts at the specified time and frequency for a batch of records. Understand the considerations and special behaviors of schedule-triggered flows, also known as scheduled flows.

 

REQUIRED EDITIONS

Available in: both Salesforce Classic and Lightning Experience

Available in: Essentials, Professional, Enterprise, Performance, Unlimited, and Developer Editions

These considerations apply to schedule-triggered flows.

 

A schedule-triggered flow starts at the specified time and frequency. You can’t launch a schedule-triggered flow by any other means.

The Start Time field value is based on the Salesforce org’s default time zone.

The View All Data permission is required to activate an autolaunched flow that has a trigger.

The maximum number of schedule-triggered flow interviews per 24 hours is 250,000, or the number of user licenses in your org multiplied by 200, whichever is greater. One interview is created for each record retrieved by the schedule-triggered flow’s query.

If you specify an object so that the flow runs for a batch of records, then set the time, frequency, and record conditions to avoid reaching this limit. You can use debug logs to check how many records a schedule-triggered flow runs on. Track the number of records with the SCHEDULED_FLOW_DETAIL event. If your org reaches the limit, Salesforce sends a flow error email.

 

If you delete a schedule-triggered flow from the Scheduled Jobs page in Setup, all future recurrences of that flow are canceled. To enable future runs, deactivate and reactivate the flow.

If a flow is scheduled to run one time with a date and time that already passed, the flow doesn’t run.

The Automated Process user runs schedule-triggered flows.

If you need a schedule-triggered flow to invoke Apex code, don’t enable the Require User Access to Apex Classes Invoked by Flow update. When that release update is activated, schedule-triggered flows fail when they invoke Apex.

A schedule-triggered flow can make callouts only after executing a Wait element. For example, without a Wait element, the flow can't access external objects, execute Apex actions that make callouts, or execute actions that are generated from External Services registrations.

Tip

TIP You can insert a Wait element that pauses the flow for only a moment. Configure the resume event to pause until a specified time, with a specific time as the time source. For the base time, specify the $Flow.CurrentDateTime global variable. Then set the offset to 0 hours. At run time, a Wait element that's set up this way typically pauses the flow for less than a minute.

If you configure an Update Records element to use the ID and all field values from the $Record global variable, enable Filter inaccessible fields from flow requests in your org’s process automation settings. Otherwise, the flow fails because the Update Records element tries to set the values for system fields and other read-only fields.

When you define multiple filters, the filter logic usually defaults to AND. However, if multiple filters have the same field selected and use the equals operator, the filters are combined with OR.

For example, your filters check whether a case’s Type equals Problem (1), Type equals Feature Request (2), and Escalated equals true (3). At run time, the filters are combined to (1 OR 2) AND 3.

 

You can't reference a screen flow from an autolaunched flow.

 

728x90
반응형