Skip to main content
Ok, here's one for you experts out there.  I have to make a callout to get leads from a third party.  The problem is that I have to pass a parent ID to this GET method that will retun the leads for that parent ID.  The problem is that I have to make a seperate call for each parent ID.  I know, it's silly but they don't have a way to just pass an array of all the parentIDs and get back a list of leads in one call.  

So, the company wants this job to run at night and get all the leads from all the parentIDs.   I know from the past that I can't have more than like 10 callouts in a transaction or something like that. 

So, how can I do this?   How can I create a batch job that makes a seperate callout for each parentID?   

Thank you in advance!
2 answers
0/9000