Organization methods: merge
The Organization Verbs merge as typed SDK methods, with inputs, result, refusals and an example.
Reference for Organization, one group of Organization methods.
Organization.merge
Merge joins a duplicate Organization into another, keeping every Contact, Deal and Event on the one that remains. Verb page.
interface OrganizationVerbs {
merge(input: OrganizationMergeInput, options?: SB.CallOptions): SB.Call<Organization>
}Emits Organization.merged.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
organization | Organization | required | The duplicate. |
into | Organization | required | The Organization that remains. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
organization | Organization | required | The remaining Organization. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
import { $ } from 'startup-builder'
const organization = await $.Organization.merge({ organization: 'organization_v0SkRLrXCN', into: 'organization_v0SkRLrXCN' })