CreateWorkflowActionUpdateProperty
Creates an updateProperty action in a draft version, either as its first action (workflowVersionId) or after an existing action through a new transition (fromActionId)
Signature
mutation {
CreateWorkflowActionUpdateProperty(entityPropertyId: ..., contextType: ..., objectId: ...)
}
Retourne : WorkflowActionUpdateProperty!
Arguments
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
workflowVersionId | ID | — | Version receiving the action as its first action; exactly one of workflowVersionId and fromActionId must be provided | |
fromActionId | ID | — | Action after which the new action is appended; exactly one of workflowVersionId and fromActionId must be provided | |
transitionLabel | String | — | Label of the transition created from fromActionId, e.g. the branch of an If action; ignored with workflowVersionId | |
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 | — | Value to write, checked against the property rules when saved |
Exemple
mutation {
CreateWorkflowActionUpdateProperty(
entityPropertyId: $entityPropertyId
contextType: $contextType
objectId: $objectId
) {
id
type {}
transitions {}
entityProperty {}
contextType {}
rootType {}
objectId
value
}
}