UpdateWorkflowActionUpdateProperty
Replaces the whole configuration of an updateProperty action of a draft version
Signature
mutation {
UpdateWorkflowActionUpdateProperty(workflowActionId: ..., entityPropertyId: ..., contextType: ..., objectId: ...)
}
Retourne : WorkflowActionUpdateProperty!
Arguments
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
workflowActionId | ID! | ✓ | — | — |
entityPropertyId | ID! | ✓ | — | — |
contextType | FormQuestionDataStrategyDefinition! | ✓ | — | Context the property is written in, e.g. Account, PersonalInfo or Investment; must match the entity of the property |
objectId | String! | ✓ | — | Id of the Account or Investment to update, or trigger to update the object that triggered the workflow |
value | Any | — | Fixed value to write, checked against the property rules when saved; null when valueExpression is set | |
valueExpression | String | — | Twig expression rendering the JSON value to write, evaluated with the triggering object when the action runs; exclusive with value, '' = null |
Exemple
mutation {
UpdateWorkflowActionUpdateProperty(
workflowActionId: $workflowActionId
entityPropertyId: $entityPropertyId
contextType: $contextType
objectId: $objectId
) {
id
type {}
transitions {}
entityProperty {}
contextType {}
rootType {}
objectId
value
valueExpression
}
}