We are attempting to call an external REST endpoint from within a CXone Studio Script to update a CRM record. The logic seems straightforward, but the execution fails immediately upon invoking the proxy object.
The snippet code looks like this:
ASSIGN proxy = GetRESTProxy("crm-integration")
IF proxy == null THEN
ASSIGN error_msg = "Proxy not found"
ELSE
ASSIGN response = proxy.Get("/api/contacts/123")
END_IF
The error returned is INVALID_FUNCTION. This is confusing because GetRESTProxy is documented as a valid function in the Studio scripting reference. We have verified that the integration named crm-integration exists in the CXone admin console and is active.
Is there a specific syntax requirement for passing the integration ID? Or does GetRESTProxy require additional parameters that are not obvious from the basic documentation? We have tried passing the UUID instead of the name, but that results in the same error.
Any insights on what might cause the function resolver to reject this call?