Hi, I am working on a requirement in which i have to read the "Item No" Laptop from the business central database and using that item no to get the list of vendor records from the external API from another database. (e.g: "api.vendors.xyz/vendors/ItemNo/").
The issue is that when i read record one by one from the business central database and call the api. i am unable to track which HttpResponse belongs to which Item No because the response receives late. I have tried to use the System.sleep() to wait for 10 sec to get the api response but it doesn't work in my case. so what happen is when all the item no are loop through by system and i get the responses after 5 minutes sometimes.
How to handle this scenario?

Report
All responses (
Answers (