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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

JSON trigger to sending an email on on-expire event

[
   {
      "event":"on-expire",
      "actions":[
         {
            "action":"send-email",
            "recipients":[
               "@watchers",
               "@creator",
               "@lastUpdatedBy"
            ],
            "notification":{
               "subject":"${content.title} has expired",
               "title":"${content.title} has expired",
               "body":"Hello, ${content.link} in the ${content.space} space has expired and needs to be reviewed"
            }
         },
         {
            "action":"set-message",
            "type":"info",
            "title":"Expired",
            "body":"The page has expired",
            "tags":"state",
            "mode":"autoClose"
         }
      ]
   }
]
eventon-expire
  • no event condition added - trigger will listen for every state expiry event
actionsend-email
  • email sent to content watchers (@watchers), author (@creator) and last user who updated the content (@lastUpdatedby)
actionset-message
  • message set to autoClose after viewing

For the trigger to occur a state must have an expiration date added that expires.

0

 JSON format to add to workflow builder
[{"event":"on-expire","actions":[{"action":"send-email","recipients":["@watchers","@creator", "@lastUpdatedBy"],"notification":{"subject":"${content.title} has expired","title":"${content.title} has expired","body":"Hello, ${content.link} in the ${content.space} space has expired and needs to be reviewed"}},{"action":"set-message","type":"info","title":"Expired","body":"The page has expired","tags":"state","mode":"autoClose"}]}]


(info) It is mandatory in the

A range of JSON trigger actions is available including the clean-message action to remove all on-screen notifications.

List of trigger actions

  • No labels