mitchspano/trigger-actions-framework

TA action for multiple contexts

Closed this issue · 2 comments

I just would like to ask why there is the limitation of having only one context per action, why cannot be used same action for more, which is standard use case (before / after update, of after insert / update
Image

There is a 1-1 relationship between Trigger_Action__mdt row and trigger context because the order and entry criteria formula can be different for different contexts. Ex: an action could be the 1st thing before insert, but the 5th thing before update.

You can use the same action in multiple trigger contexts by creating multiple rows of metadata - one for each context.

I see, make sense, but is a bit unfortunate. Thank you for quick answer. We are rolling your library to our new projects :D