@salesforce/b2c-tooling-sdk / clients / scapiUnavailableMessage
Function: scapiUnavailableMessage()
scapiUnavailableMessage(
domainName):string
Defined in: packages/b2c-tooling-sdk/src/clients/scapi-backend-utils.ts:200
Message for when explicit SCAPI is requested but the instance can't reach it.
Names both reasons the SCAPI client config can be unavailable — missing coordinates OR an auth flow that can't request scopes — because a user who hits this in explicit --api-backend scapi mode often does have shortCode and tenantId configured; the real blocker can be browser user auth, which SCAPI Admin APIs do not currently support, or a fixed-scope stored token. The old message only mentioned missing credentials, which was misleading.
Parameters
domainName
string
Returns
string