Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / clients / isValidRoleTenantFilter

Function: isValidRoleTenantFilter()

isValidRoleTenantFilter(value): boolean

Defined in: packages/b2c-tooling-sdk/src/clients/am-api.ts:49

Validates whether a string matches the Account Manager role tenant filter format.

Format: ROLE_ENUM:realm_instance(,realm_instance)*(;ROLE_ENUM:...)* Examples: SALESFORCE_COMMERCE_API:abcd_prd or bm-admin:tenant1,tenant2;ECOM_USER:wxyz_stg

Parameters

value

string

The string to validate

Returns

boolean

True if the value matches the role tenant filter format, false otherwise

Released under the Apache-2.0 License.