Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/orgs / getOrgByName

Function: getOrgByName()

getOrgByName(client, name): Promise<AccountManagerOrganization>

Defined in: packages/b2c-tooling-sdk/src/operations/orgs/index.ts:88

Gets an organization by name (performs case-sensitive prefix search using startsWith, filters to exact match if multiple results are found, throws if ambiguous).

Parameters

client

AccountManagerOrgsClient

Account Manager Organizations client

name

string

Organization name

Returns

Promise<AccountManagerOrganization>

Organization details

Throws

If the organization is not found or if multiple organizations match the name

Released under the Apache-2.0 License.