Hi everyone, I am trying to implement the sample function provided at to export my trigger execution logs. I am getting an error stating that the method “authenticate” is not defined, and I suspect the URL is actually wrong as it won’t resolve.

Do you know what the value for this variable should be?

const ADMIN_API_BASE_URL = “”;


Hi @Carlos_Alvidrez, welcome!

Please make sure that you have included/declared the helper functions mentioned in the beginning on the page. There are two helper functions listed authenticate() and formatQueryString().

The value of the URL should be as declared before the function on Get Recent Logs section. If you’re getting an error that ADMIN_API_BASE_URL is not found, please make sure that you have declared this variable.