94
Views
3
Comments
Solved
Batch API process with Timers

Is there a way to user timers to consume API on a certain time? Let's say you will get your data in the DB and got 15 rows of data and consume those into an API endpoint using timers?

2021-07-14 09-27-33
Luís Cardoso
Solution

Hi Edwin,

Yes, is possible to do something like this:

1. Call API and create that 15 records in an Entity

2. Call the Wake<Timer> action

3. In timer, do an Aggregate to get that 15 records and do a for each to call the API for each record

You can find more information about the Wake<Timer> action here (section Use the WakeTimer Built-in Action): https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Timers/Create_and_Run_Timers#Use_the_WakeTimer_Built-in_Action

UserImage.jpg
Edwin Aligato

Thank you Luis for this! 

2021-07-14 09-27-33
Luís Cardoso

Hi again Edwin,

Be free to ask for help if you need it.

BR,

Luis

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