See if your function is running in an alias or a trigger
See if your function is running in an alias or a trigger
Needed a way to see if my function was being called from an alias or a trigger context, came up with this. Not extensively tested yet, and would love better methods: