Can the next() be used to trigger logic before an forest admin approval workflow

Feature(s) impacted

Smart Action

Observed behavior

If we have a smart action with next() can the code before next be triggered before an approval workflow? Created an example below just high level showing the steps

Send slack notification - always executes
next()
Change user status - only executes if the action is approved

Hello @Zero,

I’m not sure I quite understand what your goal is.

The code you have declared for your smart actions is only executed if you have the right to execute the said action or if the action approval has been approved (via Collaborative tools). Rejecting the action approval will not trigger a call to your agent.