GraphQLRepositoriesproductPriceList
entities.productPriceList
Read product price list records with the productPriceList repository, and change them with the product price list mutations. Same records as the REST ProductPriceLists entity.
Queries
Fields of entities { productPriceList { … } }.
| 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. | ProductPriceListEntity |
| QUERY | getByIds(entityIds: [ID!]!)Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well. | [ProductPriceListEntity!]! |
| QUERY | getAll(limit: Int, offset: Int, filter: ProductPriceListFilterInput, orderBy: [ProductPriceListOrderByInput!], includeDeleted: Boolean)Returns the records that match the filter, paged with limit and offset. | [ProductPriceListEntity!]! |
| QUERY | getByCriteria(filter: ProductPriceListFilterInput, orderBy: [ProductPriceListOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)Returns the records that match the filter as a cursor-paginated connection. | ProductPriceListEntityConnection |
| 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!]! |
Mutations
| Kind | Mutation | Does | Returns |
|---|---|---|---|
| MUTATION | createProductPriceList(input: CreateProductPriceListInput!, validationLevel: [ValidationLevel!]) | Create one record | CreateProductPriceListPayload |
| MUTATION | updateProductPriceList(input: UpdateProductPriceListInput!, action: UpdateProductPriceListActionEnum, validationLevel: [ValidationLevel!], sessionIdToUpdate: String) | Update fields | UpdateProductPriceListPayload |
| MUTATION | bulkUpdateProductPriceList(input: [CreateOrUpdateProductPriceListInput!]!, deleteInput: [DeleteProductPriceListInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput) | Create or update many; per-item results | BulkUpdateProductPriceListPayload |
| MUTATION | deleteProductPriceList(input: DeleteProductPriceListInput!) | Soft-delete | DeleteProductPriceListPayload |
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.
ProductPriceListEntity object 17 fields: isDeleteProtected, id, isDeleted, …
Price list with product prices per currency, applied to opportunities and quotes while it is active.
| 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. |
description | String | Free-form description of the price list. |
endDate | Date | Date when the price list expires. Empty means open-ended. |
isActive | Boolean | Master switch for the price list. Inactive price lists are not applied to opportunities or quotes regardless of dates. |
name | String! | Name of the entity and its default text representation. |
rules | FieldFilter | Conditions that determine which opportunities or quotes the price list applies to (for example by sales unit, account or custom field). |
startDate | Date | Date when the price list becomes active. Empty means immediately. |
type | ProductPriceListTypeEnum | Kind of price list: a regular price list (Standard), or a price schedule with special prices that take precedence over standard price lists while active (Scheduled). |
revision | Int | Revision when entity was lastly changed. |
isDefault | Boolean! | True for the team space default price list, which cannot be deleted. Read-only. |
status | ProductPriceListStatusEnum! | Effective status of the price list (Active, Inactive, Scheduled, Expired). Read-only; derived from isActive and the start/end dates. |
productPriceListPrices | ProductPriceListPriceEntityConnection (8 args) | Per-product, per-currency prices configured in the price list. |
instancePermissions | [EntityPermsEnum!]! (1 args) | Permissions the current user has on this record, out of the requested ones. |
ProductPriceListEntityConnection object pageInfo: PageInfo!, edges: [ProductPriceListEntityEdge]!, totalCount: Int
Paginated list of ProductPriceList records.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [ProductPriceListEntityEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of items in the connection. |
ProductPriceListEntityEdge object node: ProductPriceListEntity, cursor: String!
A Relay edge containing a ProductPriceListEntity and its cursor.
| Field | Type | Description |
|---|---|---|
node | ProductPriceListEntity | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
ProductPriceListFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field
Filter conditions for ProductPriceList records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.
| Input field | Type | Description |
|---|---|---|
OR | [ProductPriceListFilterInput!] | Matches records that meet at least one of the listed filters. |
AND | [ProductPriceListFilterInput!] | Matches records that meet all of the listed filters. |
NOT | ProductPriceListFilterInput | 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. |
description | EntityFilterStringField | Free-form description of the price list. |
isActive | Boolean | Master switch for the price list. Inactive price lists are not applied to opportunities or quotes regardless of dates. |
name | EntityFilterStringField | Name of the entity and its default text representation. |
type | ProductPriceListTypeEnumFilterInput | Kind of price list: a regular price list (Standard), or a price schedule with special prices that take precedence over standard price lists while active (Scheduled). |
revision | EntityFilterNumberField | Revision when entity was lastly changed. |
isDefault | Boolean | True for the team space default price list, which cannot be deleted. Read-only. |
status | ProductPriceListStatusEnum | Effective status of the price list (Active, Inactive, Scheduled, Expired). Read-only; derived from isActive and the start/end dates. |
productPriceListPrices | ProductPriceListPriceFilterInput | Per-product, per-currency prices configured in the price list. Matches records where a related record meets these conditions. |
ProductPriceListOrderByInput input Asc or Desc per field
Sorting of ProductPriceList 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. |
description | OrderByEnum | Free-form description of the price list. |
endDate | OrderByEnum | Date when the price list expires. Empty means open-ended. |
isActive | OrderByEnum | Master switch for the price list. Inactive price lists are not applied to opportunities or quotes regardless of dates. |
name | OrderByEnum | Name of the entity and its default text representation. |
startDate | OrderByEnum | Date when the price list becomes active. Empty means immediately. |
type | OrderByEnum | Kind of price list: a regular price list (Standard), or a price schedule with special prices that take precedence over standard price lists while active (Scheduled). |
revision | OrderByEnum | Revision when entity was lastly changed. |
isDefault | OrderByEnum | True for the team space default price list, which cannot be deleted. Read-only. |
ProductPriceListTypeEnumFilterInput input eq: [ProductPriceListTypeEnum!], NOT: ProductPriceListTypeEnumFilterInput
Conditions on an enumeration field. Several conditions given together must all match.
| Input field | Type | Description |
|---|---|---|
eq | [ProductPriceListTypeEnum!] | Matches any of the listed values. |
NOT | ProductPriceListTypeEnumFilterInput | Matches values that do not meet this condition. |
CreateOrUpdateProductPriceListInput input 13 fields: clientMutationId, id, modified, …
Field values of a ProductPriceList 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. |
description | String | Free-form description of the price list. |
endDate | Date | Date when the price list expires. Empty means open-ended. |
isActive | Boolean | Master switch for the price list. Inactive price lists are not applied to opportunities or quotes regardless of dates. |
name | String | Name of the entity and its default text representation. |
rules | JSONString | Filter expression — a FieldFilter JSON object — deciding which records (e.g. accounts, opportunities) the price list applies to. Empty when it applies to all records. Validated on write. Full structure: /reference/graphql/types/f/#FieldFilter |
startDate | Date | Date when the price list becomes active. Empty means immediately. |
type | ProductPriceListTypeEnum | Kind of price list: a regular price list (Standard), or a price schedule with special prices that take precedence over standard price lists while active (Scheduled). |
revision | Int | Revision when entity was lastly changed. |
productPriceListPrices | [CreateProductPriceListPriceNoProductPriceListBackrefInput!] | Per-product, per-currency prices configured in the price list. |
CreateProductPriceListInput input 12 fields: clientMutationId, modified, created, …
Field values of a new ProductPriceList 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. |
description | String | Free-form description of the price list. |
endDate | Date | Date when the price list expires. Empty means open-ended. |
isActive | Boolean | Master switch for the price list. Inactive price lists are not applied to opportunities or quotes regardless of dates. |
name | String! | Name of the entity and its default text representation. |
rules | JSONString | Filter expression — a FieldFilter JSON object — deciding which records (e.g. accounts, opportunities) the price list applies to. Empty when it applies to all records. Validated on write. Full structure: /reference/graphql/types/f/#FieldFilter |
startDate | Date | Date when the price list becomes active. Empty means immediately. |
type | ProductPriceListTypeEnum | Kind of price list: a regular price list (Standard), or a price schedule with special prices that take precedence over standard price lists while active (Scheduled). |
revision | Int | Revision when entity was lastly changed. |
productPriceListPrices | [CreateProductPriceListPriceNoProductPriceListBackrefInput!] | Per-product, per-currency prices configured in the price list. |
CreateProductPriceListPriceNoProductPriceListBackrefInput input 7 fields: modified, created, currencyId, …
Field values of a new ProductPriceListPrice record, created together with the record it belongs to.
| Input field | Type | Description |
|---|---|---|
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
currencyId | ID! | Id of the currency the price is denominated in. |
price | Float | Price amount stored at 6-decimal precision; values set via the API are rounded. |
productId | ID! | Id of the product the price applies to. |
settings | ProductPriceListPriceSettingsJSONString! | Per-price access controls (e.g. which user roles can override this price). Stored as a JSON object. |
revision | Int | Revision when entity was lastly changed. |
DeleteProductPriceListInput input clientMutationId: String, id: ID!
Id of the ProductPriceList 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. |
UpdateProductPriceListInput input 13 fields: clientMutationId, id, modified, …
Id of a ProductPriceList 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. |
description | String | Free-form description of the price list. |
endDate | Date | Date when the price list expires. Empty means open-ended. |
isActive | Boolean | Master switch for the price list. Inactive price lists are not applied to opportunities or quotes regardless of dates. |
name | String | Name of the entity and its default text representation. |
rules | JSONString | Filter expression — a FieldFilter JSON object — deciding which records (e.g. accounts, opportunities) the price list applies to. Empty when it applies to all records. Validated on write. Full structure: /reference/graphql/types/f/#FieldFilter |
startDate | Date | Date when the price list becomes active. Empty means immediately. |
type | ProductPriceListTypeEnum | Kind of price list: a regular price list (Standard), or a price schedule with special prices that take precedence over standard price lists while active (Scheduled). |
revision | Int | Revision when entity was lastly changed. |
productPriceListPrices | [CreateProductPriceListPriceNoProductPriceListBackrefInput!] | Per-product, per-currency prices configured in the price list. |
BulkUpdateProductPriceListPayload object result: BulkUpdateResults!
Result of the bulkUpdateProductPriceList mutation.
| Field | Type | Description |
|---|---|---|
result | BulkUpdateResults! | Ids of the created, updated and deleted records, and the items that failed. |
CreateProductPriceListPayload object productPriceList: ProductPriceListEntity, clientMutationId: String
Result of the createProductPriceList mutation.
| Field | Type | Description |
|---|---|---|
productPriceList | ProductPriceListEntity | 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). |
DeleteProductPriceListPayload object productPriceList: ProductPriceListEntity, clientMutationId: String
Result of the deleteProductPriceList mutation.
| Field | Type | Description |
|---|---|---|
productPriceList | ProductPriceListEntity | 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). |
UpdateProductPriceListPayload object productPriceList: ProductPriceListEntity, clientMutationId: String
Result of the updateProductPriceList mutation.
| Field | Type | Description |
|---|---|---|
productPriceList | ProductPriceListEntity | 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). |
FieldFilter object 5 fields: operator, formula, filterMainBox, …
Filter definition: conditions on a record type and on related records, grouped in filter boxes and combined with And, Or or a custom formula.
| Field | Type | Description |
|---|---|---|
operator | FilterGroupOperator! | How the filter boxes combine — And or Or. |
formula | String | Optional boolean formula combining the filter boxes by their number. |
filterMainBox | MainFilterBox! | Primary group of filter conditions. |
filterSiblingBoxes | [FilterBox!]! | Additional condition groups, combined per operator/formula. |
isEnabled | Boolean! | When false, the filter is ignored and all records match. |
ProductPriceListStatusEnum enum Active, Inactive, Scheduled, Expired
Effective status of a price list.
| Value | Description |
|---|---|
Active | The price list is switched on and within its validity dates. |
Inactive | The price list is switched off. |
Scheduled | The price list's start date is in the future. |
Expired | The price list's end date has passed. |
ProductPriceListTypeEnum enum Standard, Scheduled
Kind of price list.
| Value | Description |
|---|---|
Standard | Regular price list that offers product prices to matching records. |
Scheduled | Price schedule with special prices; while active, its lowest applicable price takes precedence over standard price lists. |