function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Siddhartha Tomar 12Siddhartha Tomar 12 

How to make a callout in batch class

Hi All,

I have a requirement where i want to make the callout with 5000 records and my api support one record at a time. So i have to make the callout for 1 record at a time i.e 5000 callout. Can you please let me know can i do this using batch class. What is best way to do this ?

Thanks in advance.

Thanks
Siddhartha
Suraj Tripathi 47Suraj Tripathi 47
Hi,

Please follow the below code, this might help you.

https://www.biswajeetsamal.com/blog/batch-apex-with-webservice-callout/


Please mark it as Best Answer if it helps you.

Thanks & Regards
Suraj Tripathi
AbhinavAbhinav (Salesforce Developers) 
Hi Siddhartha,

You can refre this video link for understanding 

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

Thanks!