Skip to main content

CreateWorkflowActionUpdateProperty

Stable

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​

NomTypeRequisDéfautDescription
workflowVersionIdID—Version receiving the action as its first action; exactly one of workflowVersionId and fromActionId must be provided
fromActionIdID—Action after which the new action is appended; exactly one of workflowVersionId and fromActionId must be provided
transitionLabelString—Label of the transition created from fromActionId, e.g. the branch of an If action; ignored with workflowVersionId
entityPropertyIdID!✓——
contextTypeFormQuestionDataStrategyDefinition!✓—Context the property is written in, e.g. Account, PersonalInfo or Investment; must match the entity of the property
objectIdString!✓—Id of the Account or Investment to update, or trigger to update the object that triggered the workflow
valueAny—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
}
}