You need to sign in to do that
Don't have an account?
Pari M 28
Control the number of API requests that I can make from Salesforce to avoid the rate limit error
I would like to make multiple API requests from Salesforce to a 3rd party.
I can make only 50 requests/ minute.
As there are thousands of records, I am using a batch to achieve this. However, how can I make sure that my batch doesn't exceed 50 requests/ min. If I don't have this limit in place, I would encounter rate limit error (from the third party)
As I haven't found a delay/ timer function that I coud use, any examples or ideas are appreciated.
Thanks
I can make only 50 requests/ minute.
As there are thousands of records, I am using a batch to achieve this. However, how can I make sure that my batch doesn't exceed 50 requests/ min. If I don't have this limit in place, I would encounter rate limit error (from the third party)
As I haven't found a delay/ timer function that I coud use, any examples or ideas are appreciated.
Thanks
https://trailhead.salesforce.com/en/modules/asynchronous_apex/units/async_apex_queueable
I hope this help you cause
You can do one thing .. .
Create a custom filed on object ( processed__c with data type boolean )
Once you process the data using Queueable Apex you can mark as Processed to true and implement chaining ..