GraphQLRepositoriesopptyRecurrence
entities.opptyRecurrence
Read oppty recurrence records with the opptyRecurrence repository, and change them with the oppty recurrence mutations. Same records as the REST OpptyRecurrences entity.
Queries
Fields of entities { opptyRecurrence { … } }.
| 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. | OpptyRecurrenceEntity |
| QUERY | getByIds(entityIds: [ID!]!)Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well. | [OpptyRecurrenceEntity!]! |
| QUERY | getAll(limit: Int, offset: Int, filter: OpptyRecurrenceFilterInput, orderBy: [OpptyRecurrenceOrderByInput!], includeDeleted: Boolean)Returns the records that match the filter, paged with limit and offset. | [OpptyRecurrenceEntity!]! |
| QUERY | getByCriteria(filter: OpptyRecurrenceFilterInput, orderBy: [OpptyRecurrenceOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int)Returns the records that match the filter as a cursor-paginated connection. | OpptyRecurrenceEntityConnection |
| 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 | createOpptyRecurrence(input: CreateOpptyRecurrenceInput!, validationLevel: [ValidationLevel!]) | Create one record | CreateOpptyRecurrencePayload |
| MUTATION | updateOpptyRecurrence(input: UpdateOpptyRecurrenceInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String) | Update fields | UpdateOpptyRecurrencePayload |
| MUTATION | bulkUpdateOpptyRecurrence(input: [CreateOrUpdateOpptyRecurrenceInput!]!, deleteInput: [DeleteOpptyRecurrenceInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput) | Create or update many; per-item results | BulkUpdateOpptyRecurrencePayload |
| MUTATION | deleteOpptyRecurrence(input: DeleteOpptyRecurrenceInput!) | Soft-delete | DeleteOpptyRecurrencePayload |
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.
OpptyRecurrenceEntity object 21 fields: isDeleteProtected, id, isDeleted, …
Recurrence rule that creates new copies of an opportunity on a schedule, e.g. for repeat deals once it is won or lost.
| 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. |
oppty | OpportunityEntity | Opportunity this recurrence belongs to. Each recurrence is bound to exactly one opportunity. |
step | StepEntity | Pipeline step that newly generated opportunities are placed in. |
condition | Int | Bit Flag field, with limited combination of integer values. |
day | DateDayEnum | Field whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative. |
dayOfWeek | Int | Bit Flag field, with limited combination of integer values. |
endDate | Date | Date information. The last date when no more other items should be created. |
month | DateMonthEnum | Field whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative. |
occurEvery | Int | The number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum. |
occurrencesCount | Int | Whole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied. |
opptyId | ID! | Id of the parent opportunity. |
startDate | Date! | Date information. The effective start date of recurrence, which means each next recurrence must be on or after this date. |
stepId | ID! | Id of the pipeline step the opportunities created by the recurrence start in. |
type | RecurrenceTypeEnum | Recurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative). |
week | DateWeekEnum | Field whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute. |
revision | Int | Revision when entity was lastly changed. |
instancePermissions | [EntityPermsEnum!]! (1 args) | Permissions the current user has on this record, out of the requested ones. |
OpptyRecurrenceEntityConnection object pageInfo: PageInfo!, edges: [OpptyRecurrenceEntityEdge]!, totalCount: Int
Paginated list of OpptyRecurrence records.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [OpptyRecurrenceEntityEdge]! | Contains the nodes in this connection. |
totalCount | Int | Total number of items in the connection. |
OpptyRecurrenceEntityEdge object node: OpptyRecurrenceEntity, cursor: String!
A Relay edge containing a OpptyRecurrenceEntity and its cursor.
| Field | Type | Description |
|---|---|---|
node | OpptyRecurrenceEntity | The item at the end of the edge |
cursor | String! | A cursor for use in pagination |
OpptyRecurrenceFilterInput input AND, OR, NOT, globalSearchQuery, one condition per field
Filter conditions for OpptyRecurrence records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.
| Input field | Type | Description |
|---|---|---|
OR | [OpptyRecurrenceFilterInput!] | Matches records that meet at least one of the listed filters. |
AND | [OpptyRecurrenceFilterInput!] | Matches records that meet all of the listed filters. |
NOT | OpptyRecurrenceFilterInput | 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. |
condition | RecurrenceConditionEnumFilterInput | Bit Flag field, with limited combination of integer values. |
day | DateDayEnumFilterInput | Field whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative. |
dayOfWeek | DateDayOfWeekEnumFilterInput | Bit Flag field, with limited combination of integer values. |
month | DateMonthEnumFilterInput | Field whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative. |
occurEvery | EntityFilterNumberField | The number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum. |
occurrencesCount | EntityFilterNumberField | Whole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied. |
opptyId | EntityFilterStringField | Id of the parent opportunity. |
stepId | EntityFilterStringField | Id of the pipeline step the opportunities created by the recurrence start in. |
type | RecurrenceTypeEnumFilterInput | Recurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative). |
week | DateWeekEnumFilterInput | Field whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute. |
revision | EntityFilterNumberField | Revision when entity was lastly changed. |
oppty | OpportunityFilterInput | Opportunity this recurrence belongs to. Each recurrence is bound to exactly one opportunity. Matches records where a related record meets these conditions. |
step | StepFilterInput | Pipeline step that newly generated opportunities are placed in. Matches records where a related record meets these conditions. |
OpptyRecurrenceOrderByInput input Asc or Desc per field
Sorting of OpptyRecurrence 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. |
oppty | [OpportunityOrderByNestedInput!] | Opportunity this recurrence belongs to. Each recurrence is bound to exactly one opportunity. Sorts by fields of the related record, listed in order of priority. |
step | [StepOrderByNestedInput!] | Pipeline step that newly generated opportunities are placed in. Sorts by fields of the related record, listed in order of priority. |
condition | OrderByEnum | Bit Flag field, with limited combination of integer values. |
day | OrderByEnum | Field whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative. |
dayOfWeek | OrderByEnum | Bit Flag field, with limited combination of integer values. |
endDate | OrderByEnum | Date information. The last date when no more other items should be created. |
month | OrderByEnum | Field whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative. |
occurEvery | OrderByEnum | The number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum. |
occurrencesCount | OrderByEnum | Whole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied. |
opptyId | OrderByEnum | Id of the parent opportunity. |
startDate | OrderByEnum | Date information. The effective start date of recurrence, which means each next recurrence must be on or after this date. |
stepId | OrderByEnum | Id of the pipeline step the opportunities created by the recurrence start in. |
type | OrderByEnum | Recurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative). |
week | OrderByEnum | Field whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute. |
revision | OrderByEnum | Revision when entity was lastly changed. |
RecurrenceConditionEnumFilterInput input eq: [RecurrenceConditionEnum!], NOT: RecurrenceConditionEnumFilterInput
Conditions on an enumeration field. Several conditions given together must all match.
| Input field | Type | Description |
|---|---|---|
eq | [RecurrenceConditionEnum!] | Matches any of the listed values. |
NOT | RecurrenceConditionEnumFilterInput | Matches values that do not meet this condition. |
CreateOpptyRecurrenceInput input 17 fields: clientMutationId, applyRecurrence, modified, …
Field values of a new OpptyRecurrence 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). |
applyRecurrence | Boolean | Default true. When set, then reccurence will apply when other conditions passed. With the value false (e.g. when skip button is used) then recurrence will not apply |
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
condition | Int | Bit Flag field, with limited combination of integer values. |
day | DateDayEnum | Field whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative. |
dayOfWeek | Int | Bit Flag field, with limited combination of integer values. |
endDate | Date | Date information. The last date when no more other items should be created. |
month | DateMonthEnum | Field whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative. |
occurEvery | Int | The number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum. |
occurrencesCount | Int | Whole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied. |
opptyId | ID! | Id of the parent opportunity. |
startDate | Date! | Date information. The effective start date of recurrence, which means each next recurrence must be on or after this date. |
stepId | ID! | Id of the pipeline step the opportunities created by the recurrence start in. |
type | RecurrenceTypeEnum | Recurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative). |
week | DateWeekEnum | Field whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute. |
revision | Int | Revision when entity was lastly changed. |
CreateOrUpdateOpptyRecurrenceInput input 18 fields: clientMutationId, applyRecurrence, id, …
Field values of an OpptyRecurrence 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). |
applyRecurrence | Boolean | Default true. When set, then reccurence will apply when other conditions passed. With the value false (e.g. when skip button is used) then recurrence will not apply |
id | ID | Unique identifier of entity. |
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
condition | Int | Bit Flag field, with limited combination of integer values. |
day | DateDayEnum | Field whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative. |
dayOfWeek | Int | Bit Flag field, with limited combination of integer values. |
endDate | Date | Date information. The last date when no more other items should be created. |
month | DateMonthEnum | Field whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative. |
occurEvery | Int | The number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum. |
occurrencesCount | Int | Whole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied. |
opptyId | ID | Id of the parent opportunity. |
startDate | Date | Date information. The effective start date of recurrence, which means each next recurrence must be on or after this date. |
stepId | ID | Id of the pipeline step the opportunities created by the recurrence start in. |
type | RecurrenceTypeEnum | Recurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative). |
week | DateWeekEnum | Field whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute. |
revision | Int | Revision when entity was lastly changed. |
DeleteOpptyRecurrenceInput input clientMutationId: String, id: ID!
Id of the OpptyRecurrence 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. |
UpdateOpptyRecurrenceInput input 18 fields: clientMutationId, applyRecurrence, id, …
Id of an OpptyRecurrence 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). |
applyRecurrence | Boolean | Default true. When set, then reccurence will apply when other conditions passed. With the value false (e.g. when skip button is used) then recurrence will not apply |
id | ID! | Unique identifier of entity. |
modified | DateTime | Last modification time. |
created | DateTime | Creation time. |
condition | Int | Bit Flag field, with limited combination of integer values. |
day | DateDayEnum | Field whose values are strictly defined with an enumeration of values. The day of the month. This setting is applicable only for RecurrenceTypeEnum.MonthlyRelative and RecurrenceTypeEnum.YearlyRelative. |
dayOfWeek | Int | Bit Flag field, with limited combination of integer values. |
endDate | Date | Date information. The last date when no more other items should be created. |
month | DateMonthEnum | Field whose values are strictly defined with an enumeration of values. The number of month this setting is applicable only for RecurrenceTypeEnum.YearlyAbsolute and RecurrenceTypeEnum.YearlyRelative. |
occurEvery | Int | The number of units of a given recurrence type between occurrences according to RecurrenceTypeEnum. |
occurrencesCount | Int | Whole natural number. The number of remaining occurrences. Each time a new one is created, it decreases. When item is set to 1, only last one can be created. If it is set to 0, recurrence is stopped. If -1, no limits are applied. |
opptyId | ID | Id of the parent opportunity. |
startDate | Date | Date information. The effective start date of recurrence, which means each next recurrence must be on or after this date. |
stepId | ID | Id of the pipeline step the opportunities created by the recurrence start in. |
type | RecurrenceTypeEnum | Recurrence cadence (e.g. Daily, Weekly, MonthlyAbsolute, MonthlyRelative, YearlyAbsolute, YearlyRelative). |
week | DateWeekEnum | Field whose values are strictly defined with an enumeration of values. The week of month. This setting is applicable only for RecurrenceTypeEnum.MonthlyAbsolute and RecurrenceTypeEnum.YearlyAbsolute. |
revision | Int | Revision when entity was lastly changed. |
BulkUpdateOpptyRecurrencePayload object result: BulkUpdateResults!
Result of the bulkUpdateOpptyRecurrence mutation.
| Field | Type | Description |
|---|---|---|
result | BulkUpdateResults! | Ids of the created, updated and deleted records, and the items that failed. |
CreateOpptyRecurrencePayload object opptyRecurrence: OpptyRecurrenceEntity, clientMutationId: String
Result of the createOpptyRecurrence mutation.
| Field | Type | Description |
|---|---|---|
opptyRecurrence | OpptyRecurrenceEntity | 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). |
DeleteOpptyRecurrencePayload object opptyRecurrence: OpptyRecurrenceEntity, clientMutationId: String
Result of the deleteOpptyRecurrence mutation.
| Field | Type | Description |
|---|---|---|
opptyRecurrence | OpptyRecurrenceEntity | 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). |
UpdateOpptyRecurrencePayload object opptyRecurrence: OpptyRecurrenceEntity, clientMutationId: String
Result of the updateOpptyRecurrence mutation.
| Field | Type | Description |
|---|---|---|
opptyRecurrence | OpptyRecurrenceEntity | 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). |
RecurrenceConditionEnum enum Won, Lost
Opportunity outcomes that trigger creation of the next opportunity in a recurring series; values can be combined.
| Value | Description |
|---|---|
Won | The next opportunity is created when the current one is won. |
Lost | The next opportunity is created when the current one is lost. |