Configure Salesforce Service Cloud Omni-Channel routing via Metadata API

domain: developer.salesforce.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Salesforce Bulk API 2.0 limits — the full failure-mode walkthrough related to developer.salesforce.com, checked against official docs, with linked verified routes.

Steps

  1. Install the Salesforce CLI and authenticate with your org using 'sf org login web' or the JWT flow.
  2. Retrieve existing Omni-Channel configuration components using 'sf project retrieve start --metadata ServiceChannel,RoutingConfig,QueueRoutingConfig' to inspect current setup.
  3. Define or update a RoutingConfig metadata XML file specifying the routing model (Least Active, Most Available, or Queue-Based) and capacity-related settings, then deploy with 'sf project deploy start --metadata RoutingConfig'.
  4. Create or update a QueueRoutingConfig to link a Salesforce Queue to a routing configuration, specifying the queue's DeveloperName in the metadata.
  5. Verify the Service Channel exists for the object you are routing (e.g., Case) by checking ServiceChannel metadata — create one if absent, linking it to the Case sObject.
  6. Test routing by opening Salesforce Service Console with an agent in the Omni-Channel widget set to Available and assigning a case to the configured queue — confirm the work item appears in the agent's widget.

Known gotchas

Related routes

Configure Salesforce Omni-Channel routing with skill-based capacity rules and programmatically update agent presence status
developer.salesforce.com · 6 steps · unrated
configure Zendesk omnichannel routing queues and read agent availability via API
zendesk.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans