Hey everyone,
I’m hitting a wall with a Studio snippet. I need to call an external API to validate a customer ID before routing the call. The logic seems sound, but the script fails immediately at the assignment step.
Here’s the snippet code:
ASSIGN restProxy = GetRESTProxy("https://api.vendor.com/validate")
The error log just says:
INVALID_FUNCTION: Function GetRESTProxy not found or invalid arguments.
I’ve checked the spelling. It matches the documentation exactly. I even tried wrapping the URL in quotes differently, but no luck. Is there a specific version requirement for this function? Or maybe I need to initialize the proxy object differently first?
I’m using the standard REST integration connector. The endpoint works fine in Postman. It’s just the Studio syntax that’s acting up. Any ideas on what I’m missing?