Org Fields.

Enumeration Members

ALIAS

The org alias.

CREATED
CREATED_ORG_INSTANCE

The Salesforce instance the org was created on. e.g. cs42.

DEV_HUB_USERNAME

The username of the dev hub org that created this org. Only populated for scratch orgs.

INSTANCE_NAME
INSTANCE_URL

The full url of the instance the org lives on.

IS_DEV_HUB

Is the current org a dev hub org. e.g. They have access to the ScratchOrgInfo object.

IS_SANDBOX

Is the current org a sandbox (not a scratch org on a non-prod instance), but an actual Sandbox org). e.g. Organization has IsSandbox == true and TrialExpirationDate == null.

IS_SCRATCH

Is the current org a scratch org. e.g. Organization has IsSandbox == true and TrialExpirationDate != null.

LOGIN_URL

The login url of the org. e.g. https://login.salesforce.com or https://test.salesforce.com.

NAME
NAMESPACE_PREFIX
ORG_EDITION

The org edition. e.g. Developer Edition, Enterprise Edition.

ORG_ID

The org ID.

SNAPSHOT

The snapshot used to create the scratch org.

STATUS

The OrgStatus of the org.

TRACKS_SOURCE

true: the org supports and wants source tracking false: the org opted out of tracking or can't support it

TRIAL_EXPIRATION_DATE