Trying to parse a JSON response from a REST call in a Studio Snippet. The GetRESTProxy action returns the payload, but the ASSIGN action fails to extract the nested object.
- CXone Studio v22.1
- Endpoint:
GET /api/v2/users/me - Response structure:
{ "id": "123", "name": "Test" } - Snippet code:
ASSIGN restResponse = GetRESTProxy(Url="/api/v2/users/me", Method="GET")
ASSIGN userId = restResponse.id
Getting a null value for userId. The logs show the JSON is there. Not sure if the parser needs explicit casting or if the key access syntax is wrong for nested objects. Checked the docs but no examples for direct property access on the proxy object.