166k views
5 votes
How many callouts to an HTTP request or an API call can a single Apex transaction make?

A. Up to 50 callouts
B. Up to 75 callouts
C. Up to 100 callouts
D. Unlimited callouts

User TLindig
by
8.3k points

1 Answer

5 votes

Final answer:

In Salesforce Apex, a single transaction can make up to 100 HTTP callouts or API calls. This limit is enforced to prevent excessive use of external services and ensure the platform's stability.

The correct answer is C.

Step-by-step explanation:

In the context of Salesforce Apex development, the number of HTTP callouts or API calls that a single Apex transaction can make is up to 100 callouts. This means that within a single execution context, developers are limited to making a maximum of 100 web service callouts to external services.

It's important to plan your integration and batch operations accordingly to stay within this limit, to avoid hitting governor limits in Salesforce. Exceeding these could result in exceptions and failures in your Apex code.

User Robot
by
8.6k points