Skip to content

fix(tooling): use per-record requests for multi-record create/update/destroy - #1862

Open
yassine2med wants to merge 1 commit into
jsforce:mainfrom
yassine2med:fix/tooling-collections-use-parallel
Open

yassine2med wants to merge 1 commit into
jsforce:mainfrom
yassine2med:fix/tooling-collections-use-parallel

Conversation

@yassine2med

Copy link
Copy Markdown

The Tooling API has no sObject Collections resource (/composite/sobjects). Tooling#create, update and destroy with an array inherited the Connection versions, which build that URL under /tooling, so the call returned NOT_FOUND.

This routes the multi-record paths to the existing parallel implementations (one request per record, same allOrNone behavior as Connection on API versions below 42).

Tests: 3 stubbed unit tests in test/tooling-multi-record.test.ts (no org needed). They fail on the old code and pass with this change. tsc --noEmit and eslint are clean.

Fixes #1815

🤖 Generated with Claude Code

https://claude.ai/code/session_01CakWWNeSCYx1PiJnozyrTB

…destroy

The Tooling API has no sObject Collections resource (/composite/sobjects), so Tooling#create/update/destroy with an array hit a non-existent URL and returned NOT_FOUND. Route the multi-record paths to the existing parallel implementations instead. Adds stubbed unit tests that need no org.

Fixes jsforce#1815

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tooling.destroy() with an array of ids always fails

1 participant