@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
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