Double Period Identification - PosiEd

(PosiEd package)

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 and add + 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.

Double Period Example

After the batch runs,

On the 1st Session, the MultiSession field will have a value of 1.

On the 2nd Session, the MultiSession field will have a value of 2, and the Session Master field will be populated on the 1st Session record.