GraphQLRepositoriesimportMappingMask
entities.importMappingMask
Read import mapping mask records with the importMappingMask repository, and change them with the import mapping mask mutations. Same records as the REST ImportMappingMasks entity.
Queries
Fields of entities { importMappingMask { … } }.
| 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. | ImportMappingMaskEntity |
| QUERY | getByIds(entityIds: [ID!]!)Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well. | [ImportMappingMaskEntity!]! |
| QUERY | getAll(limit: Int, offset: Int, filter: ImportMappingMaskFilterInput, orderBy: [ImportMappingMaskOrderByInput!], includeDeleted: Boolean)Returns the records that match the filter, paged with limit and offset. | [ImportMappingMaskEntity!]! |
| QUERY | getByCriteria(filter: ImportMappingMaskFilterInput, orderBy: [ImportMappingMaskOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)Returns the records that match the filter as a cursor-paginated connection. | ImportMappingMaskEntityConnection |
| 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!]! |
| QUERY | getForEntityType(entityType: ImportMaskEntityTypeEnum!, entityApiName: String)Returns the saved import column mappings for the given record type, sorted by name. | [ImportMappingMaskEntity!]! |
Mutations
| Kind | Mutation | Does | Returns |
|---|---|---|---|
| MUTATION | createImportMappingMask(input: CreateImportMappingMaskInput!, validationLevel: [ValidationLevel!]) | Create one record | CreateImportMappingMaskPayload |
| MUTATION | updateImportMappingMask(input: UpdateImportMappingMaskInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String) | Update fields | UpdateImportMappingMaskPayload |
| MUTATION | bulkUpdateImportMappingMask(input: [CreateOrUpdateImportMappingMaskInput!]!, deleteInput: [DeleteImportMappingMaskInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput) | Create or update many; per-item results | BulkUpdateImportMappingMaskPayload |
| MUTATION | deleteImportMappingMask(input: DeleteImportMappingMaskInput!) | Soft-delete | DeleteImportMappingMaskPayload |
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.
ImportMappingMaskEntity object 20 fields: isDeleteProtected, id, isDeleted, …
Saved mapping of import file columns to fields, reused when importing records of the same entity.
| 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. |
isDeleted | Boolean | Specifies if the entity is considered deleted. |
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
owner | ClientEntity | User who owns the import mapping mask. |
entityApiName | String | API name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name). |
entityType | ImportMaskEntityTypeEnum! | Entity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity. |
mapping | JSONString! | How the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write. |
name | String! | Display name of the mask. |
ownerId | ID! | Id of the owning user. |
relationTypes | JSONString | Record type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write. |
shareMode | ProfileShareMode | Who besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users. |
revision | Int | Revision when entity was lastly changed. |
sharingClients | [ClientEntity!] | Users granted shared access to this import mapping mask (custom share mode). |
sharingUnits | [SalesUnitEntity!] | Sales units granted shared access to this import mapping mask (custom share mode). |
instancePermissions | [EntityPermsEnum!]! (1 args) | Permissions the current user has on this record, out of the requested ones. |
mappingMask | [ImportMappingMaskItem!] | How the columns of the import file map to fields: one item per mapped field, with the mapping type and the source column. |
mappingRelationTypes | [ImportMappingRelationType!] | Record type selected for each mapped relation field of the mask. |
isDefault | Boolean! | True for a default import mapping mask provided by Coevera; it cannot be deleted. |
ImportMappingMaskEntityConnection object pageInfo: PageInfo!, edges: [ImportMappingMaskEntityEdge]!, totalCount: Int
Paginated list of ImportMappingMask records.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [ImportMappingMaskEntityEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of items in the connection. |
ImportMappingMaskEntityEdge object node: ImportMappingMaskEntity, cursor: String!
A Relay edge containing a ImportMappingMaskEntity and its cursor.
| Field | Type | Description |
|---|---|---|
node | ImportMappingMaskEntity | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
ImportMappingMaskFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field
Filter conditions for ImportMappingMask records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.
| Input field | Type | Description |
|---|---|---|
OR | [ImportMappingMaskFilterInput!] | Matches records that meet at least one of the listed filters. |
AND | [ImportMappingMaskFilterInput!] | Matches records that meet all of the listed filters. |
NOT | ImportMappingMaskFilterInput | 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. |
entityApiName | EntityFilterStringField | API name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name). |
entityType | ImportMaskEntityTypeEnumFilterInput | Entity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity. |
name | EntityFilterStringField | Display name of the mask. |
ownerId | EntityFilterStringField | Id of the owning user. |
shareMode | ShareModeEnumFilterInput | Who besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users. |
revision | EntityFilterNumberField | Revision when entity was lastly changed. |
owner | ClientFilterInput | User who owns the import mapping mask. Matches records where a related record meets these conditions. |
ImportMappingMaskOrderByInput input Asc or Desc per field
Sorting of ImportMappingMask 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. |
isDeleted | OrderByEnum | Specifies if the entity is considered deleted. |
modified | OrderByEnum | Last modification time. |
created | OrderByEnum | Creation time. |
owner | [ClientOrderByNestedInput!] | User who owns the import mapping mask. Sorts by fields of the related record, listed in order of priority. |
entityApiName | OrderByEnum | API name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name). |
ownerId | OrderByEnum | Id of the owning user. |
shareMode | OrderByEnum | Who besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users. |
revision | OrderByEnum | Revision when entity was lastly changed. |
ImportMaskEntityTypeEnumFilterInput input eq: [ImportMaskEntityTypeEnum!], NOT: ImportMaskEntityTypeEnumFilterInput
Conditions on an enumeration field. Several conditions given together must all match.
| Input field | Type | Description |
|---|---|---|
eq | [ImportMaskEntityTypeEnum!] | Matches any of the listed values. |
NOT | ImportMaskEntityTypeEnumFilterInput | Matches values that do not meet this condition. |
CreateImportMappingMaskInput input 13 fields: clientMutationId, modified, created, …
Field values of a new ImportMappingMask record.
| Input field | Type | Description |
|---|---|---|
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. |
entityApiName | String | API name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name). |
entityType | ImportMaskEntityTypeEnum! | Entity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity. |
mapping | JSONString! | How the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write. |
name | String! | Display name of the mask. |
ownerId | ID! | Id of the owning user. |
relationTypes | JSONString | Record type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write. |
shareMode | ProfileShareMode | Who besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users. |
revision | Int | Revision when entity was lastly changed. |
sharingClients | [UUID!] | Users granted shared access to this import mapping mask (custom share mode). |
sharingUnits | [UUID!] | Sales units granted shared access to this import mapping mask (custom share mode). |
CreateOrUpdateImportMappingMaskInput input 14 fields: clientMutationId, id, modified, …
Field values of an ImportMappingMask record to create, or to update when its id is set.
| Input field | Type | Description |
|---|---|---|
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. |
entityApiName | String | API name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name). |
entityType | ImportMaskEntityTypeEnum | Entity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity. |
mapping | JSONString | How the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write. |
name | String | Display name of the mask. |
ownerId | ID | Id of the owning user. |
relationTypes | JSONString | Record type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write. |
shareMode | ProfileShareMode | Who besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users. |
revision | Int | Revision when entity was lastly changed. |
sharingClients | [UUID!] | Users granted shared access to this import mapping mask (custom share mode). |
sharingUnits | [UUID!] | Sales units granted shared access to this import mapping mask (custom share mode). |
DeleteImportMappingMaskInput input clientMutationId: String, id: ID!
Id of the ImportMappingMask record to delete.
| Input field | Type | Description |
|---|---|---|
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. |
UpdateImportMappingMaskInput input 14 fields: clientMutationId, id, modified, …
Id of an ImportMappingMask record and the field values to change.
| Input field | Type | Description |
|---|---|---|
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. |
entityApiName | String | API name of the entity this mask is configured for (e.g. "Account", "Contact", a custom entity's API name). |
entityType | ImportMaskEntityTypeEnum | Entity the mask imports records into, such as leads, accounts, users or product prices. For custom entities, entityApiName identifies the custom entity. |
mapping | JSONString | How the import file fills each field, as a JSON array of objects conforming to the ImportMappingMaskItem type: field_id, mapping_type (ColumnIndex, UseDefaultValues or CalculateValue) and, for ColumnIndex, column_index. Validated on write. |
name | String | Display name of the mask. |
ownerId | ID | Id of the owning user. |
relationTypes | JSONString | Record type selected for each mapped relation field, as a JSON array of objects conforming to the ImportMappingRelationType type, each with field_id and entity_type_id. Validated on write. |
shareMode | ProfileShareMode | Who besides the owner can use the import mapping mask: nobody (Private, the default), the users and sales units in sharingClients and sharingUnits, or all users. |
revision | Int | Revision when entity was lastly changed. |
sharingClients | [UUID!] | Users granted shared access to this import mapping mask (custom share mode). |
sharingUnits | [UUID!] | Sales units granted shared access to this import mapping mask (custom share mode). |
BulkUpdateImportMappingMaskPayload object result: BulkUpdateResults!
Result of the bulkUpdateImportMappingMask mutation.
| Field | Type | Description |
|---|---|---|
result | BulkUpdateResults! | Ids of the created, updated and deleted records, and the items that failed. |
CreateImportMappingMaskPayload object importMappingMask: ImportMappingMaskEntity, clientMutationId: String
Result of the createImportMappingMask mutation.
| Field | Type | Description |
|---|---|---|
importMappingMask | ImportMappingMaskEntity | 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). |
DeleteImportMappingMaskPayload object importMappingMask: ImportMappingMaskEntity, clientMutationId: String
Result of the deleteImportMappingMask mutation.
| Field | Type | Description |
|---|---|---|
importMappingMask | ImportMappingMaskEntity | 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). |
UpdateImportMappingMaskPayload object importMappingMask: ImportMappingMaskEntity, clientMutationId: String
Result of the updateImportMappingMask mutation.
| Field | Type | Description |
|---|---|---|
importMappingMask | ImportMappingMaskEntity | 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). |
ImportFieldMappingType enum ColumnIndex, UseDefaultValues, CalculateValue
How an import mapping fills a target field.
| Value | Description |
|---|---|
ColumnIndex | Value is read from the file column given by columnIndex. |
UseDefaultValues | The field's default value is used. |
CalculateValue | The value is calculated by Coevera instead of imported. |
ImportMappingMaskItem object fieldId: ID!, mappingType: ImportFieldMappingType!, columnIndex: Int
How a saved import mapping fills one field: the mapping type and the source column of the import file.
| Field | Type | Description |
|---|---|---|
fieldId | ID! | Id of the field the import fills. |
mappingType | ImportFieldMappingType! | How the import fills the field. |
columnIndex | Int | Index of the import file column the value is read from; set when mappingType is ColumnIndex. |
ImportMappingRelationType object fieldId: ID!, entityTypeId: ID!
Record type selected for a relation field in a saved import mapping.
| Field | Type | Description |
|---|---|---|
fieldId | ID! | Id of the mapped relation field. |
entityTypeId | ID! | Id of the record type selected for the relation field. |
ImportMaskEntityTypeEnum enum Lead, Opportunity, Account, Contact, Client, Product, ProductPriceListPrice, CustomEntity
Entity that an import mapping mask imports records into.
| Value | Description |
|---|---|
Lead | Potential sale in its early stage that moves through a lead process until it is qualified into an opportunity or lost. |
Opportunity | Potential deal with a value and closing date that moves through the steps of a sales pipeline until it is won or lost. |
Account | Company or organization the sales team works with; contacts, leads, opportunities and activities are linked to it. |
Contact | Person the sales team works with, usually linked to one or more accounts, leads and opportunities. |
Client | Users of the space. |
Product | Product or service in the catalog that can be added as a line item to opportunities and quotes. |
ProductPriceListPrice | Product prices in price lists. |
CustomEntity | Record of a custom entity, a kind of record the space defines (such as Vehicle or Contract) in addition to the built-in entities. |