18
Views
5
Comments
need to append the data from one entity to another entity by batch using Timer
Question
Application Type
Reactive

need to append the data from one entity to another entity by batch using Timer in a particular Interval of time .

2025-08-07 06-30-56
Amit J
Champion

Hi , You can follow the steps 
 Create a Timer

  • Go to Logic → Timers → Add Timer.

  • Name it something like Timer_XYZ.

2. Create a Server Action for Timer Logic

  • Right-click on the Timer → Create Action.

  • This action will contain your batching logic.

3. Define Batch Parameters

Inside the Timer’s action:

  • Create local variable:

    • BatchSize = 100 (or any number based on volume).

    • Offset = 0

4. Loop Through Batches

Use a Loop with Exit Condition like:

plaintextCopyEditExitCondition = IsEmpty(SourceData)

Inside the loop:

  • Fetch Batch from SourceEntity:

    • Use Aggregate or Advanced SQL with:

      • MaxRecords = BatchSize

      • StartIndex = Offset

  • For Each Record in Batch:

    • Create a new record in TargetEntity using CreateTargetEntity.

  • Increment Offset:

    • Offset = Offset + BatchSize

5. Set Timer Interval

  • Go to Timer properties:

    • Schedule: Define how often it should run (e.g., every 10 minutes).

6. Publish and Test

  • Publish the app.

  • Run the Timer manually from Service Center to test.

  • Check data appended in TargetEntity.

UserImage.jpg
Alan S

thats what my question is . it shows mininum value of a Day , how can i add it less than a 5 mins


2026-01-28 16-57-48
Mihai Melencu
Champion

Hi, you can do that by editing the configuration in Service Center. 

Go to Service Center -> The module where you have the timer -> Timers -> Your Timer.


You can read more about it here: Timer | OutSystems 11

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.