---
title: entities.formView
description: Read form view records with the formView repository, and change them with the form view mutations. Same records as the REST FormViews entity.
canonical: https://developers.coevera.com/reference/graphql/form-view/
section: graphql
verification: schema
generatedFrom: schema f155746 (2026-10-20)
publisher: Coevera
---

# entities.formView

Read form view records with the formView repository, and change them with the form view mutations. Same records as the REST FormViews entity.

REST: [FormViews](https://developers.coevera.com/reference/rest/form-views.md).

## Queries

- `getById(entityId: ID!): FormViewEntity` Returns the record with the given id, or null when there is none. Deleted records are returned as well.
- `getByIds(entityIds: [ID!]!): [FormViewEntity!]!` Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
- `getAll(limit: Int, offset: Int, filter: FormViewFilterInput, orderBy: [FormViewOrderByInput!], includeDeleted: Boolean): [FormViewEntity!]!` Returns the records that match the filter, paged with limit and offset.
- `getByCriteria(filter: FormViewFilterInput, orderBy: [FormViewOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int): FormViewEntityConnection` Returns the records that match the filter as a cursor-paginated connection.
- `getChangedFieldsSinceRevision(id: UUID!, revision: Int!): [UUID!]!` Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.

## Mutations

- `createFormView(input: CreateFormViewInput!, validationLevel: [ValidationLevel!]): CreateFormViewPayload` Create one record.
- `updateFormView(input: UpdateFormViewInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String): UpdateFormViewPayload` Update fields.
- `bulkUpdateFormView(input: [CreateOrUpdateFormViewInput!]!, deleteInput: [DeleteFormViewInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput): BulkUpdateFormViewPayload` Create or update many; per-item results.
- `deleteFormView(input: DeleteFormViewInput!): DeleteFormViewPayload` Soft-delete.

## Types

### FormViewEntity (object)

Variant of the form of an account, contact, lead or opportunity type that hides or colors selected fields; owned by a user and can be shared.

- `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.
- `isDeleted: Boolean` Specifies if the entity is considered deleted.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `accountType: AccountTypeEntity` Account type the form view applies to. Set when the form view targets accounts.
- `contactType: ContactTypeEntity` Contact type the form view applies to. Set when the form view targets contacts.
- `leadType: LeadTypeEntity` Lead type the form view applies to. Set when the form view targets leads.
- `opptyType: OpportunityTypeEntity` Opportunity type the form view applies to. Set when the form view targets opportunities.
- `owner: ClientEntity` User who owns the form view.
- `accountTypeId: ID` Id of the account type the form view applies to. Set when the form view targets accounts.
- `contactTypeId: ID` Id of the contact type the form view applies to. Set when the form view targets contacts.
- `hiddenItemIds: [UUID!]!` Ids of fields and webresources hidden from the form for this view.
- `itemColors: [FormViewItemColor!]!` Per-item color overrides for fields and webresources in the form, keyed by item id.
- `leadTypeId: ID` Id of the lead type the form view applies to. Set when the form view targets leads.
- `name: String!` Name of the entity and its default text representation.
- `opptyTypeId: ID` Id of the opportunity type.
- `ownerId: ID!` Id of the owning user.
- `shareMode: ShareModeEnum` Who besides the owner can use the form view: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits (Standard), or all users (AllView to view, AllEdit to also edit).
- `useLang: Boolean` When true, the form view name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.
- `entityTypeId: UUID!` Id of the type the form view is configured for, derived from whichever of the per-entity-type relations is set.
- `sharingUnits: FormViewSharingSalesUnitRelationEntityConnection (8 args)` Sales units that have been granted shared access to this form view (custom share mode).
- `sharingClients: FormViewSharingClientRelationEntityConnection (8 args)` Users that have been granted shared access to this form view (custom share mode).
- `instancePermissions: [EntityPermsEnum!]! (1 args)` Permissions the current user has on this record, out of the requested ones.

### FormViewEntityConnection (object)

Paginated list of FormView records.

- `pageInfo: PageInfo!` Pagination data for this connection.
- `edges: [FormViewEntityEdge]!` Contains the nodes in this connection.
- `totalCount: Int` Total number of items in the connection.

### FormViewEntityEdge (object)

A Relay edge containing a `FormViewEntity` and its cursor.

- `node: FormViewEntity` The item at the end of the edge
- `cursor: String!` A cursor for use in pagination

### FormViewFilterInput (input)

Filter conditions for FormView records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

- `OR: [FormViewFilterInput!]` Matches records that meet at least one of the listed filters.
- `AND: [FormViewFilterInput!]` Matches records that meet all of the listed filters.
- `NOT: FormViewFilterInput` 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.
- `isDeleted: Boolean` Specifies if the entity is considered deleted.
- `modified: EntityFilterDateTimeField` Last modification time.
- `created: EntityFilterDateTimeField` Creation time.
- `accountTypeId: EntityFilterStringField` Id of the account type the form view applies to. Set when the form view targets accounts.
- `contactTypeId: EntityFilterStringField` Id of the contact type the form view applies to. Set when the form view targets contacts.
- `leadTypeId: EntityFilterStringField` Id of the lead type the form view applies to. Set when the form view targets leads.
- `name: EntityFilterStringField` Name of the entity and its default text representation.
- `opptyTypeId: EntityFilterStringField` Id of the opportunity type.
- `ownerId: EntityFilterStringField` Id of the owning user.
- `shareMode: ShareModeEnumFilterInput` Who besides the owner can use the form view: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits (Standard), or all users (AllView to view, AllEdit to also edit).
- `useLang: Boolean` When true, the form view name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: EntityFilterNumberField` Revision when entity was lastly changed.
- `accountType: AccountTypeFilterInput` Account type the form view applies to. Set when the form view targets accounts. Matches records where a related record meets these conditions.
- `contactType: ContactTypeFilterInput` Contact type the form view applies to. Set when the form view targets contacts. Matches records where a related record meets these conditions.
- `leadType: LeadTypeFilterInput` Lead type the form view applies to. Set when the form view targets leads. Matches records where a related record meets these conditions.
- `opptyType: OpportunityTypeFilterInput` Opportunity type the form view applies to. Set when the form view targets opportunities. Matches records where a related record meets these conditions.
- `owner: ClientFilterInput` User who owns the form view. Matches records where a related record meets these conditions.
- `sharingUnits: FormViewSharingSalesUnitRelationFilterInput` Sales units that have been granted shared access to this form view (custom share mode). Matches records where a related record meets these conditions.
- `sharingClients: FormViewSharingClientRelationFilterInput` Users that have been granted shared access to this form view (custom share mode). Matches records where a related record meets these conditions.

### FormViewOrderByInput (input)

Sorting of FormView records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

- `id: OrderByEnum` Unique identifier of entity.
- `isDeleted: OrderByEnum` Specifies if the entity is considered deleted.
- `modified: OrderByEnum` Last modification time.
- `created: OrderByEnum` Creation time.
- `accountType: [AccountTypeOrderByNestedInput!]` Account type the form view applies to. Set when the form view targets accounts. Sorts by fields of the related record, listed in order of priority.
- `contactType: [ContactTypeOrderByNestedInput!]` Contact type the form view applies to. Set when the form view targets contacts. Sorts by fields of the related record, listed in order of priority.
- `leadType: [LeadTypeOrderByNestedInput!]` Lead type the form view applies to. Set when the form view targets leads. Sorts by fields of the related record, listed in order of priority.
- `opptyType: [OpportunityTypeOrderByNestedInput!]` Opportunity type the form view applies to. Set when the form view targets opportunities. Sorts by fields of the related record, listed in order of priority.
- `owner: [ClientOrderByNestedInput!]` User who owns the form view. Sorts by fields of the related record, listed in order of priority.
- `accountTypeId: OrderByEnum` Id of the account type the form view applies to. Set when the form view targets accounts.
- `contactTypeId: OrderByEnum` Id of the contact type the form view applies to. Set when the form view targets contacts.
- `leadTypeId: OrderByEnum` Id of the lead type the form view applies to. Set when the form view targets leads.
- `name: OrderByEnum` Name of the entity and its default text representation.
- `opptyTypeId: OrderByEnum` Id of the opportunity type.
- `ownerId: OrderByEnum` Id of the owning user.
- `shareMode: OrderByEnum` Who besides the owner can use the form view: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits (Standard), or all users (AllView to view, AllEdit to also edit).
- `useLang: OrderByEnum` When true, the form view name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: OrderByEnum` Revision when entity was lastly changed.

### CreateFormViewInput (input)

Field values of a new FormView record.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `accountTypeId: ID` Id of the account type the form view applies to. Set when the form view targets accounts.
- `contactTypeId: ID` Id of the contact type the form view applies to. Set when the form view targets contacts.
- `hiddenItemIds: [UUID!]!` Ids of fields and webresources hidden from the form for this view.
- `itemColors: [FormViewItemColorInput!]!` Per-item color overrides for fields and webresources in the form, keyed by item id.
- `leadTypeId: ID` Id of the lead type the form view applies to. Set when the form view targets leads.
- `name: String!` Name of the entity and its default text representation.
- `opptyTypeId: ID` Id of the opportunity type.
- `ownerId: ID!` Id of the owning user.
- `shareMode: ShareModeEnum` Who besides the owner can use the form view: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits (Standard), or all users (AllView to view, AllEdit to also edit).
- `useLang: Boolean` When true, the form view name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.
- `sharingUnits: [CreateFormViewSharingSalesUnitRelationNoFormViewBackrefInput!]` Sales units that have been granted shared access to this form view (custom share mode).
- `sharingClients: [CreateFormViewSharingClientRelationNoFormViewBackrefInput!]` Users that have been granted shared access to this form view (custom share mode).

### CreateFormViewSharingClientRelationNoFormViewBackrefInput (input)

Field values of a new FormViewSharingClientRelation record, created together with the record it belongs to.

- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `clientId: ID!` Id of the user.
- `role: SharingRoleEnum` Access the sharing gives the user on the form view: Watcher can view it, Editor can also edit it.
- `revision: Int` Revision when entity was lastly changed.

### CreateFormViewSharingSalesUnitRelationNoFormViewBackrefInput (input)

Field values of a new FormViewSharingSalesUnitRelation record, created together with the record it belongs to.

- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `role: SharingRoleEnum` Access the sharing gives members and managers of the sales unit on the form view: Watcher can view it, Editor can also edit it.
- `unitId: ID!` Id of the sales unit.
- `revision: Int` Revision when entity was lastly changed.

### CreateOrUpdateFormViewInput (input)

Field values of a FormView record to create, or to update when its id is set.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID` Unique identifier of entity.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `accountTypeId: ID` Id of the account type the form view applies to. Set when the form view targets accounts.
- `contactTypeId: ID` Id of the contact type the form view applies to. Set when the form view targets contacts.
- `hiddenItemIds: [UUID!]` Ids of fields and webresources hidden from the form for this view.
- `itemColors: [FormViewItemColorInput!]` Per-item color overrides for fields and webresources in the form, keyed by item id.
- `leadTypeId: ID` Id of the lead type the form view applies to. Set when the form view targets leads.
- `name: String` Name of the entity and its default text representation.
- `opptyTypeId: ID` Id of the opportunity type.
- `ownerId: ID` Id of the owning user.
- `shareMode: ShareModeEnum` Who besides the owner can use the form view: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits (Standard), or all users (AllView to view, AllEdit to also edit).
- `useLang: Boolean` When true, the form view name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.
- `sharingUnits: [CreateFormViewSharingSalesUnitRelationNoFormViewBackrefInput!]` Sales units that have been granted shared access to this form view (custom share mode).
- `sharingClients: [CreateFormViewSharingClientRelationNoFormViewBackrefInput!]` Users that have been granted shared access to this form view (custom share mode).

### DeleteFormViewInput (input)

Id of the FormView record to delete.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID!` Unique identifier of entity.

### FormViewItemColorInput (input)

Color of one field or web resource on a form view.

- `id: UUID!` Id of the form item (field or web resource) the color applies to.
- `color: Int!` Color of the item, as a packed RGB integer.

### UpdateFormViewInput (input)

Id of a FormView record and the field values to change.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID!` Unique identifier of entity.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `accountTypeId: ID` Id of the account type the form view applies to. Set when the form view targets accounts.
- `contactTypeId: ID` Id of the contact type the form view applies to. Set when the form view targets contacts.
- `hiddenItemIds: [UUID!]` Ids of fields and webresources hidden from the form for this view.
- `itemColors: [FormViewItemColorInput!]` Per-item color overrides for fields and webresources in the form, keyed by item id.
- `leadTypeId: ID` Id of the lead type the form view applies to. Set when the form view targets leads.
- `name: String` Name of the entity and its default text representation.
- `opptyTypeId: ID` Id of the opportunity type.
- `ownerId: ID` Id of the owning user.
- `shareMode: ShareModeEnum` Who besides the owner can use the form view: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits (Standard), or all users (AllView to view, AllEdit to also edit).
- `useLang: Boolean` When true, the form view name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.
- `sharingUnits: [CreateFormViewSharingSalesUnitRelationNoFormViewBackrefInput!]` Sales units that have been granted shared access to this form view (custom share mode).
- `sharingClients: [CreateFormViewSharingClientRelationNoFormViewBackrefInput!]` Users that have been granted shared access to this form view (custom share mode).

### BulkUpdateFormViewPayload (object)

Result of the bulkUpdateFormView mutation.

- `result: BulkUpdateResults!` Ids of the created, updated and deleted records, and the items that failed.

### CreateFormViewPayload (object)

Result of the createFormView mutation.

- `formView: FormViewEntity` The created record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### DeleteFormViewPayload (object)

Result of the deleteFormView mutation.

- `formView: FormViewEntity` The deleted record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### UpdateFormViewPayload (object)

Result of the updateFormView mutation.

- `formView: FormViewEntity` The updated record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### FormViewItemColor (object)

Color of one field or web resource on a form view.

- `id: ID!` Id of the form item (field or web resource) the color applies to.
- `color: Int!` Color of the item, as a packed RGB integer.

Types several repositories share, such as `PageInfo` and the filter fields, are in the [types index](https://developers.coevera.com/reference/graphql/types.md). The [SDL](https://developers.coevera.com/graphql/schema.graphql) has the whole schema in one file.

## Example

```graphql
query FirstFormViews {
  entities {
    formView {
      getByCriteria(first: 3, orderBy: [{ modified: Desc }]) {
        totalCount
        edges { node { id name modified } }
      }
    }
  }
}
```

```bash
curl 'https://{region}.api.coevera.com/api/v100/app/space/{space_id}/graphql/public' \
  --user "$COEVERA_API_KEY:$COEVERA_API_SECRET" \
  --header 'Content-Type: application/json' \
  --data '{"query":"query FirstFormViews { entities { formView { getByCriteria(first: 3, orderBy: [{ modified: Desc }]) { totalCount edges { node { id name modified } } } } } }"}'
```
