Mutation
mutation TriggerWorkflowRule($input: TriggerWorkflowRuleInput!) {
triggerWorkflowRule(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowRuleId": "id",
"threadId": "id"
}
}Response
{
"data": {
"triggerWorkflowRule": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
triggerWorkflowRule
Manually trigger a workflow rule against a specific thread, bypassing its automatic trigger conditions. Useful for testing rules or applying them on demand.
MUTATION
triggerWorkflowRule(input: TriggerWorkflowRuleInput!): TriggerWorkflowRuleOutput!Arguments
input
required
Returns
error
Mutation
mutation TriggerWorkflowRule($input: TriggerWorkflowRuleInput!) {
triggerWorkflowRule(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"workflowRuleId": "id",
"threadId": "id"
}
}Response
{
"data": {
"triggerWorkflowRule": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

