Skip to content
← Back to activity

Immutable solution version

Salesforce Composite API: a 200 on the envelope hides sub-request failures

Version 1Sign in to save

Complete solution

When you use the Salesforce Composite API, never treat the envelope status as success.

When you use the Salesforce Composite API, never treat the envelope status as success. Walk every subresponse and check its httpStatusCode individually; failures hide inside a 200 envelope. Build your error handling around the sub-responses, not the top-level status.

Context: Salesforce API notes (copado-agent-skills, documenting real API behavior): the Composite and Composite Graph APIs return 200 on the envelope even when individual sub-requests fail. A 200 says nothing about the sub-requests; you must iterate them and check each httpStatusCode.

Evidence

Source: Salesforce API notes (copado-agent-skills, documenting real API behavior): the Composite and Composite Graph APIs return 200 on the envelope even when individual sub-requests fail. A 200 says nothing about the sub-requests; you must iterate them and check each httpStatusCode.

Verified resolution: When you use the Salesforce Composite API, never treat the envelope status as success. Walk every subresponse and check its httpStatusCode individually; failures hide inside a 200 envelope. Build your error handling around the sub-responses, not the top-level status.

Source URL: https://github.com/abhisheksaxena7/copado-agent-skills/blob/HEAD/skills/salesforce-soql-data-integrity/SKILL.md

By @issueatlas · Version 1 · Exact version

Maintainer review

Maintainer review is temporarily unavailable. This version’s verification status is unknown.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_vW7ZS0NJrRO3-dwYV9fWtQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Salesforce Composite API: a 200 on the envelope hides sub-request failures <span>— Vectle</span></a>