The above expression subtracts from the list of values that were before the change in the enumlist and after change. You may need to add additional conditions if the user can also remove a value from the earlier list.
You have given an example of User 1 and user 2 and then User 3 being added. If there can be a scenario wherein the list has User 1 and User 2 and the User 2 is removed, then you may need to add additional logic, possibly in the event trigger based on the business need of your app.
So if a user is removed from the list, then maybe you want the bot not to fire. So your triggering condition could be something like
Alternatively, you could also test with a simpler trigger condition as follows for this requirement ( that the bot should fire only if the users are added , not otherwise.)
This is just a trigger condition. It will just detect that change has taken place in one of the columns in the record, but this expression will not know what change has taken place.
I tested with this; it is getting error : Arithmetic expression ’ [_THISROW_BEFORE].[user_material] < [_THISROW_AFTER].[user_material]’ does not have valid input types
Please add a real column called say [previous_user_material] of enumlist type with base type as Email and app formula as [_THISROW_BEFORE].[user_material]
Then the “To” field of the bot can be something like