I am using Amazon MWS to get Orders and insert into Salesforce. Amazon MWS have "maximum request quota" i.e. It will allow a maximum of 6 Http Callouts. Then after 6 minutes only, we can call another 6 Http Callouts. Is there any way to delay execution for 6 minutes in APEX CODE. Also how to handle this type of Throttling.

1 Answer 1


Salesforce apex doesn't have a sleep/wait functionality. And it is not planning to have one. The idea is here: https://success.salesforce.com/ideaview?id=08730000000Bq2HAAS

I guess the best you can do here is add it as a schedulable job and schedule it to run every 6 minutes.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .