I am having to make a httpcallout from a VF page to get some data from an external source.
I can see there is a limit of 10 callouts per transaction
Total number of callouts (HTTP requests or Web services calls) in a transaction 10
What would a transaction mean?
Assuming i am making a http request on click of a button and once the request is completed i again click the button, would this amount to 2 callouts in one transaction or would be considered as 2 different transactions?
Best Answer
Salesforce provides a decent explanation of transactions:
So, to answer your original question, that will be treated as two transactions. Clicking a button to fire off a single call works as one transaction that will complete. When you click it again, it will be another transaction.