Developer Preview — This project is in active development. APIs may change. Provide feedback
Skip to content

@salesforce/b2c-tooling-sdk / operations/ods / parseFriendlySandboxId

Function: parseFriendlySandboxId()

parseFriendlySandboxId(value): { instance: string; realm: string; } | null

Defined in: packages/b2c-tooling-sdk/src/operations/ods/sandbox-lookup.ts:85

Parses a friendly sandbox ID into its realm and instance components.

Parameters

value

string

The friendly ID to parse (e.g., "abcd-123" or "abcd_123")

Returns

{ instance: string; realm: string; } | null

Object with realm and instance, or null if not a valid friendly ID

Released under the Apache-2.0 License.