64
Views
3
Comments
Solved
HOW TO CONSUME REST API IN DIFFERENT TIMES?
Application Type
Reactive

Hello everybody.


I'm new to BPT and would like some help from the more experienced:


I'm consuming several endpoints at the same time from an API to provide data for a report, but some endpoints require me to have data that is sent in the response of a certain endpoint that is part of this set.


My question is: How to call this endpoint "X" first, in milliseconds, to feed some local variables that will be used in the URLs of the other endpoints as input parameters?


Performance is essential in this task!


I read the BPT and BPT Light documentation, but I couldn't develop this solution with the given examples.


Thanks in advance.


Screen Shot 2022-08-29 at 5.35.51 PM.png
2022-05-06 13-22-54
CARLOS GUIMARÃES
Solution

Just to help people who may have the same problem as me, I'll leave a solution here.

Download the Sleep component in the forge and configure it as shown in the video below. Very simple and efficient.

https://www.youtube.com/watch?v=D8mb9XExec4


Good luck to everyone!

2021-12-23 04-28-09
Navneet Sharma

Hello @CARLOS GUIMARÃES,

You can follow this OutSystems How-Tos videos tutorials.

https://www.youtube.com/watch?v=maJgEZLfk9c&t=225s

I hope this tutorials will help you.


Thanks & Regards

Navneet Sharma


2022-05-06 13-22-54
CARLOS GUIMARÃES

Hi @Navneet Sharma , thanks so much for your answer, but I don’t know if timers can help me in this case. My api trigger after user to click on bottom, so doesn’t have this option in timers. 

I’m looking for another solution, like BPT or LBPT, but I don’t know set up this in my case.


Regardless,

2022-05-06 13-22-54
CARLOS GUIMARÃES
Solution

Just to help people who may have the same problem as me, I'll leave a solution here.

Download the Sleep component in the forge and configure it as shown in the video below. Very simple and efficient.

https://www.youtube.com/watch?v=D8mb9XExec4


Good luck to everyone!

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