Imagine one object with 20 fields,
field20. Some of these fields I have Process Builder in place, some of them I have Worflow Updates, and some of them are 'bare field' (i.e. PB and WF does not touch it).
My problem is that, depending on the operation that the record performs, these tools (PB and WF) are fired or not, and it implies in how many times the
After Trigger is fired.
If the operation performed is 'clean' (i.e. it will not fire WF or PB), the
After Triggerfires only once.
If the operation causes a WF to fire, the
After Triggerfires twice.
If the operation causes a WF and PB to fire, the
After Triggerfires three times.
I need to execute certain things only on the last time that the After Trigger fires.
Is it possible to isolate it without getting rid of the current PB and WF implementation?