Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Double Period Batch Job Setup

Go to Setup > Flow > New Flow > Schedule-Triggered Flow

  • Start Date = set to TODAY

  • Start Time = 11:00 PM

  • Frequency = Daily

...

Add Element > Action > Add Action > search Invoke Double Period Identification Batch >

  • Label: Invoke Double Period Batch

  • API Name: auto populated

  • Start Date and End Date= toggle

...

Click Start Date field > click New Resource

  • Resource Type= Variable

  • API Name = var_StartDate

  • Data Type = Date

  • Default Value = type Flow then choose Current Date

    • It will look like this {!$Flow.CurrentDate}

...

Click End Date field > click New Resource >

  • Resource Type = Formula

  • API Name = var_EndDate

  • Data Type = Date

  • Formula = choose variable :var_StartDate + 1

Check Syntax and click Done

...

Click Done and Save.

  • Flow Label = Double Period Batch

  • Click Save and Activate

How it works

Note:

  1. The Double Period Batch will only work on the same Cohort record with 5-minute start time intervals. If 5 minutes are exceeded, it will not be covered in the batch process.

  2. The Double Period Batch will only work on not more than 2 Periods.

1st session will be tagged as Multisession = 1 , 2nd session will be multisession = 2 and session master will be linked to the 1st session.