GraphQLRepositoriesentity
entities.entity
Read entity records with the entity repository, and change them with the entity mutations. Same records as the REST Entities entity.
- 5 queries
- 0 mutations
- REST: Entities
Queries
Fields of entities { entity { … } }.
| Kind | Field | Returns |
|---|---|---|
| QUERY | getById(entityId: ID!)Returns the record with the given id, or null when there is none. Deleted records are returned as well. | EntityEntity |
| QUERY | getByIds(entityIds: [ID!]!)Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well. | [EntityEntity!]! |
| QUERY | getAll(limit: Int, offset: Int, filter: EntityFilterInput, orderBy: [EntityOrderByInput!], includeDeleted: Boolean)Returns the records that match the filter, paged with limit and offset. | [EntityEntity!]! |
| QUERY | getByCriteria(filter: EntityFilterInput, orderBy: [EntityOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)Returns the records that match the filter as a cursor-paginated connection. | EntityEntityConnection |
| QUERY | getChangedFieldsSinceRevision(id: UUID!, revision: Int!)Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking. | [UUID!]! |
Types
The types this repository uses, each with its fields and their descriptions. Types several repositories share, such as PageInfo and the filter fields, are in the types index.
EntityEntity object 21 fields: isDeleteProtected, id, entityName, …
Kind of record in the space, such as Account, Lead or a custom entity, with its display names and behavior.
| Field | Type | Description |
|---|---|---|
isDeleteProtected | Boolean! | True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only. |
id | ID! | Unique identifier of entity. |
entityName | String | Stable identifier of the entity (e.g. "Account", "Lead", "Opportunity"). |
tableName | String | Storage identifier of the entity. Read-only. |
tableEx | String | Storage identifier of the entity's custom-field data. Read-only. |
tableDataEx | String | Storage identifier of the entity's option relation data. Read-only. |
defaultViewFieldId | ID! | Id of the field used as the default display label for records of this entity. |
abstractEntityId | ID! | For sub-entities (e.g. Lead/Opportunity sharing a LeadOppty parent), the entity name of the parent abstract entity. Empty for stand-alone entities. |
entityType | Int! | Kind of the entity in the platform: business entity, system schema, custom entity, etc. |
preferenceOrder | Int! | Display order used to sort entities in pickers and navigation lists; lower values appear first. |
allowsMultipleRelation | Boolean | True when records of this entity can be linked to multiple records of the same other entity through the same relation. |
hasDraft | Boolean! | True when records of this entity support drafts (changes go through a draft before being published). |
accessMode | Int! | Access scope of records of this entity: shared across the entire space, scoped to a sales unit, or owner-only. |
icon | Int! | Numeric icon identifier used to render the entity in the UI. |
isDeleted | Boolean | True when the entity is marked as deleted (soft-delete). Read-only at the entity-metadata level. |
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
settings | JSONString | Optional space-level configuration for the entity (e.g. UI/feature flags). Empty when no overrides are set. |
nameSingular | String | Display name of the entity in singular form (e.g. "Account"). |
namePlural | String | Display name of the entity in plural form (e.g. "Accounts"). |
instancePermissions | [EntityPermsEnum!]! (1 args) | Permissions the current user has on this record, out of the requested ones. |
EntityEntityConnection object pageInfo: PageInfo!, edges: [EntityEntityEdge]!, totalCount: Int
Paginated list of Entity records.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [EntityEntityEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of items in the connection. |
EntityEntityEdge object node: EntityEntity, cursor: String!
A Relay edge containing a EntityEntity and its cursor.
| Field | Type | Description |
|---|---|---|
node | EntityEntity | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
EntityFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field
Filter conditions for Entity records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.
| Input field | Type | Description |
|---|---|---|
OR | [EntityFilterInput!] | Matches records that meet at least one of the listed filters. |
AND | [EntityFilterInput!] | Matches records that meet all of the listed filters. |
NOT | EntityFilterInput | Matches records that do not meet this filter. |
globalSearchQuery | String | Search term matched against the fields that the global search covers for this entity. |
id | EntityFilterStringField | Unique identifier of entity. |
entityName | EntityFilterStringField | Stable identifier of the entity (e.g. "Account", "Lead", "Opportunity"). |
tableName | EntityFilterStringField | Storage identifier of the entity. Read-only. |
tableEx | EntityFilterStringField | Storage identifier of the entity's custom-field data. Read-only. |
tableDataEx | EntityFilterStringField | Storage identifier of the entity's option relation data. Read-only. |
defaultViewFieldId | EntityFilterStringField | Id of the field used as the default display label for records of this entity. |
abstractEntityId | EntityFilterStringField | For sub-entities (e.g. Lead/Opportunity sharing a LeadOppty parent), the entity name of the parent abstract entity. Empty for stand-alone entities. |
entityType | EntityFilterNumberField | Kind of the entity in the platform: business entity, system schema, custom entity, etc. |
preferenceOrder | EntityFilterNumberField | Display order used to sort entities in pickers and navigation lists; lower values appear first. |
allowsMultipleRelation | Boolean | True when records of this entity can be linked to multiple records of the same other entity through the same relation. |
hasDraft | Boolean | True when records of this entity support drafts (changes go through a draft before being published). |
accessMode | EntityFilterNumberField | Access scope of records of this entity: shared across the entire space, scoped to a sales unit, or owner-only. |
icon | EntityFilterNumberField | Numeric icon identifier used to render the entity in the UI. |
isDeleted | Boolean | True when the entity is marked as deleted (soft-delete). Read-only at the entity-metadata level. |
modified | EntityFilterDateTimeField | Last modification time. |
created | EntityFilterDateTimeField | Creation time. |
nameSingular | EntityFilterStringField | Display name of the entity in singular form (e.g. "Account"). |
namePlural | EntityFilterStringField | Display name of the entity in plural form (e.g. "Accounts"). |
EntityOrderByInput input Asc or Desc per field
Sorting of Entity records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.
| Input field | Type | Description |
|---|---|---|
id | OrderByEnum | Unique identifier of entity. |
entityName | OrderByEnum | Stable identifier of the entity (e.g. "Account", "Lead", "Opportunity"). |
tableName | OrderByEnum | Storage identifier of the entity. Read-only. |
tableEx | OrderByEnum | Storage identifier of the entity's custom-field data. Read-only. |
tableDataEx | OrderByEnum | Storage identifier of the entity's option relation data. Read-only. |
defaultViewFieldId | OrderByEnum | Id of the field used as the default display label for records of this entity. |
abstractEntityId | OrderByEnum | For sub-entities (e.g. Lead/Opportunity sharing a LeadOppty parent), the entity name of the parent abstract entity. Empty for stand-alone entities. |
entityType | OrderByEnum | Kind of the entity in the platform: business entity, system schema, custom entity, etc. |
preferenceOrder | OrderByEnum | Display order used to sort entities in pickers and navigation lists; lower values appear first. |
allowsMultipleRelation | OrderByEnum | True when records of this entity can be linked to multiple records of the same other entity through the same relation. |
hasDraft | OrderByEnum | True when records of this entity support drafts (changes go through a draft before being published). |
accessMode | OrderByEnum | Access scope of records of this entity: shared across the entire space, scoped to a sales unit, or owner-only. |
icon | OrderByEnum | Numeric icon identifier used to render the entity in the UI. |
isDeleted | OrderByEnum | True when the entity is marked as deleted (soft-delete). Read-only at the entity-metadata level. |
modified | OrderByEnum | Last modification time. |
created | OrderByEnum | Creation time. |
nameSingular | OrderByEnum | Display name of the entity in singular form (e.g. "Account"). |
namePlural | OrderByEnum | Display name of the entity in plural form (e.g. "Accounts"). |