This site has moved to the integrated Appfire documentation and information site for our apps.
From February 2024 this site is no longer updated.
Take a look here! If you have any questions please email support@appfire.com
Sending an email on a state change
Sending an email to @document_user_reviewers@
 when the page reaches the named state Published
In this example, the trigger listens for the change of state event to the state named Published.
The action sends an email to each of the following
watchers for the page
“@watchers"
user who last updated the page
"@lastUpdatedBy"
author of the document
"@creator"
users added as values for the workflow parameter
“@document_user_reviewers@"
"triggers": [
{
"event":"on-change-state",
"conditions": [
{
"state": "Published"
}
],
"actions": [
{
"action":"send-email",
"recipients": [
"@watchers",
"@creator",
"@lastUpdatedBy",
"@document_user_reviewers@"
],
"notification": {
"subject":"${content.title} has been published",
"title":"${content.title} is published",
"body":"Hello, ${content.link} in the ${content.space} space has approved and is now in the PUBLISHED state"
}
},
{
"action":"set-message",
"type":"info",
"title":"Published",
"body":"The page has been approved and published",
"tags":"state",
"mode":"autoClose"
}
]
}
]
If adding the JSON trigger using workflow builder there is no need to include the opening "triggers":
 JSON markup notation, since it will be added by workflow builder.
|
| |
|
| |
|
| |
|
|
0
Â