service-omni-channel-limits-analyze
service-omni-channel-limits-analyze
Report the Pending Service Routing usage that can be obtained safely through supported customer-org APIs. The Salesforce Setup → Omni-Channel → Limits page is read-only and also displays internal values that are not exposed through REST, Tooling, Metadata, or Connect APIs. This skill reports the live PSR count and labels every non-verifiable value explicitly.
Inputs
bash scripts/analyze.sh <org-alias> [--routing-model enhanced|legacy] [--max-psrs <integer>]
org-aliasis required and must already be authenticated with Salesforce CLI.--routing-modeldefaults toenhanced. It selects only the reference maximum used when--max-psrsis absent.--max-psrsaccepts an administrator-provided maximum from 1 through 1,000,000. It is still labeled as not API-verified.
Run
Invoke scripts/analyze.sh with the target org and rely on its JSON result for the live count, labeled comparison values, unavailable hourly values, and blocking details. The script invokes sf org display and sf data query internally; do not reproduce their query or calculation logic outside the script.
To verify the bundled script contract after a change, run python3 scripts/tests/test_limits_analyze_contracts.py; the test module loads its local scripts/tests/_bootstrap.py fixture automatically.