GraphQL output types for Messages that represent a change or an action performed on an Approval Rule or Approval Flow.
Each type on this page implements MessagePayload and is returned in the
payload field of a Message. For when each Message is generated, see Approval Rule and Approval Flow Messages.Approval Rule Messages
ApprovalRuleCreated
Generated after an Approval Rule is created.
approvalRule | The Approval Rule that was created. |
typeString |
ApprovalRuleStatusSet
Generated after a successful Set Status update action.
oldStatus | Status of the ApprovalRule before the Set Status update action. Can be Active, or Inactive |
status | Status of the ApprovalRule after the Set Status update action. Can be Active, or Inactive |
typeString |
ApprovalRuleStatus
ActiveInactive
ApprovalRuleNameSet
Generated after a successful Set Name update action.
oldNameString | Name of the ApprovalRule before the Set Name update action. |
nameString | Name of the ApprovalRule after the Set Name update action. |
typeString |
ApprovalRuleDescriptionSet
Generated after a successful Set Description update action.
oldDescriptionString | Description of the ApprovalRule before the Set Description update action. |
descriptionString | Description of the ApprovalRule after the Set Description update action. |
typeString |
ApprovalRuleKeySet
Generated after a successful Set Key update action.
oldKeyString | |
keyString | |
typeString |
ApprovalRulePredicateSet
Generated after a successful Set Predicate update action.
oldPredicateString | Name of the ApprovalRule before the Set Predicate update action. |
predicateString | Name of the ApprovalRule after the Set Predicate update action. |
typeString |
ApprovalRuleApproversSet
Generated after a successful Set Approvers update action.
oldApprovers | Approver hierarchy of the ApprovalRule before the Set Approvers update action. |
approvers | Approver hierarchy of the ApprovalRule after the Set Approvers update action. |
typeString |
ApproverHierarchy
Describes the order in which Associates can approve the matched Order.
tiersArray of ApproverConjunction | All of the nested conjunctions must be approved in order for the hierarchy to be considered approved. |
ApproverConjunction
andArray of ApproverDisjunction | All of the nested disjunctions must be approved in order for the conjunction to be considered approved. |
ApproverDisjunction
orArray of RuleApprover | Any of the nested approvers must approve in order for the disjunction to be considered approved. |
RuleApprover
associateRole | The Associate Role that is allowed to approve at a given stage in the approval process. |
associateRoleRef | The Associate Role that is allowed to approve at a given stage in the approval process. |
ApprovalRuleRequestersSet
Generated after a successful Set Requester update action.
oldRequestersArray of RuleRequester | RuleRequester of the ApprovalRule after the Set Requester update action. |
requestersArray of RuleRequester | RuleRequester of the ApprovalRule after the Set Requester update action. |
typeString |
RuleRequester
associateRole | The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create. |
associateRoleRef | The Associate Role that an Associate must hold for the Approval Rule to apply to the Orders they create. |
Approval Flow Messages
ApprovalFlowCreated
Generated after an Approval Flow is created.
approvalFlow | The Approval Flow that was created. |
typeString |
ApprovalFlowApproved
Generated after an approval in the Approval Flow.
ApprovalFlowRejected
Generated after an Approval Flow is rejected.
rejectionReasonString | Description of the reason why the Approval Flow was rejected. |
associate | |
order | |
associateRef | |
orderRef | |
typeString |
ApprovalFlowCompleted
Generated after an Approval Flow is completed and reaches a final status.
statusString | Final status of the Approval Flow. |
order | |
orderRef | |
typeString |