Magidoc

getAccounts
Query

Lists CRM accounts in a Hive workspace.

Arguments

#

aggregateMetrics

Aggregate all matching records in the database, ignoring pagination. At most 10 metrics; omit for normal records.

workspaceId

ID !
Non-null

specificIds

[ID !]

first = 50

last

before

after

searchParams

ownerId

ownerIds

[ID !]

Restricts accounts to these CRM owner user ids (Mongo ownerId in-list). Omitted applies no owner filter; an explicitly empty list matches nothing, matching how opportunitySelector has always read an empty owner list. Mutually exclusive with ownerId on the client: pass one or neither, not both.

sortField = "modifiedAt"

sortOrder = -1

deletedFilter = "active"

Deleted scope: active (default), deleted only, or all (both).

Response

#

Returns AccountConnection .

Example

#