For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
- Account field schemas define what fields exist (type, label, options). You create the schema once.
- Account field values are the per-account values stored against a given schema.
upsertAccountFieldSchema:tenantFieldSchema:create,tenantFieldSchema:update, andtenantFieldSchema:deletedeleteAccountFieldSchema:tenantFieldSchema:deleteupsertAccountField:tenantField:create,tenantField:update, andtenantFieldSchema:read, plustenant:readwhen you identify the account byexternalIddeleteAccountField:tenant:edit
Create or update account field schemas
upsertAccountFieldSchema accepts an array of schemas to create or update in one call. Each schema is identified by the combination of source and externalFieldId.
Supported field types are STRING_TYPE, NUMBER_TYPE, BOOLEAN_TYPE, STRING_ARRAY, DATETIME_TYPE, ENUM_TYPE, USER_REFERENCE_TYPE and ACCOUNT_REFERENCE_TYPE (use options to define the allowed values).
Mutation
Variables
Delete an account field schema
Deleting a schema also removes any account field values stored against it.Mutation
Variables
Set an account field value
Once a schema exists, useupsertAccountField to set or update the value for a specific account. Pass exactly one of stringValue, numberValue, booleanValue, arrayValue, dateValue, userReferenceValues or accountReferenceValues matching the schema’s type.
Mutation
Variables
Delete an account field value
To clear an account’s value for a specific field without removing the schema itself, calldeleteAccountField.
Mutation
Variables

