Getting a response of "undefined" when returning value from Function in Application Studio Event

In application studio, I have a simple button that on click calls an Epicor Function and returns 1 Response Parameter named “Debug” and no Input Parameters. However for some reason I keep getting a response of “undefined” when I try to get a result for {actionResult.Debug}. I can’t figure out why, any advice? The function library is published and permissions on the security tab in the function is also set correctly. I can retrieve the response successfully via the Epicor REST swagger page and python. Thanks.

image
image
image