Automate: Run Action + Notification (on action results)

Hi. We have an Automation where an ontology Action modifies a subset of the input object set. After the action completes, we want to send a single notification to a few users with details about the modified subset. Since Actions cannot return Notification, we are wondering if this is doable?

More details: Our Automation uses a single effect (Action). The action (using a function) iterates through the input object set (say 100 objects), and modifies a smaller subset (say 5 objects). As part of the Automation we want to send out a single email with info about the count of objects modified, and high-level info about the 5 objects modified (e.g. name, status, etc). So looking for a way to communicate the result set modified from the Action to the Notification, or a way to add notifications to an Action.

1 Like

One way of solving this is to have a second automation to trigger upon modification of the object set and then have a “Group by properties” notification being generated. This may require that you add something like a “batch ID” property to group by on if you want to make sure only those 5 are captured by the notification (in case the previous automation returns multiple batches concurrently or within short timeframes).
To monitor the automations in tandem you could explore using Autopilot.

1 Like

Thanks. Yeah, I was also thinking about adding a property, but then I don’t think there is a way to reset that property value in the 2nd automation (the notification part). Maybe if I add a new date property (e.g. “updated_at”), run the 1st part (action) daily, and the 2nd part (notification) daily, and the 2nd part can look and notify on objects where “updated_at” was today only. In my case running these daily is OK, but would be great if there was a first-class way to be able to use the output of the action in the notification.