Trigger Error Log

As I'm working with Xano Triggers, I found it very helpful to create a Trigger Error Log table. Triggers don't bubble errors and if you don't want to keep checking the Request History or want to turn it off, the log is helpful. I created a table with Name, Code, Message, and Result fields. Then I put my trigger function stack inside a Try/Catch block within the Try section. In the Catch section I added an Add Record for the new Trigger Error table and match the Name, Code, Message, and Result values from the Try/Catch to the Insert.

This has identified issues within the Triggers much more quickly. I hope this helps others or if you have a better way to identify trigger errors, please let me know. Thanks!

Other
4
2 replies