"error": "Invalid JSON structure at path $.custom_fields.priority"
The Data Action fails when pushing conversation attributes to ServiceNow via REST API. The payload exceeds standard limits and includes nested objects.
- Trigger Architect flow on
contact:created.
- Map
attributes.priority to custom_fields.priority.
- Execute ServiceNow Data Action.
The request returns 400. Direct cURL with identical payload succeeds. Is the Data Action serializing the payload incorrectly?
The Data Action fails when pushing conversation attributes to ServiceNow via REST API.
You need to flatten the nested JSON structure before sending it. ServiceNow data actions often reject complex objects, so serialize the priority object into a simple string or map individual fields instead of passing the whole block.
Check your payload size against Genesys Cloud Data Action limits.
Cause: Nested JSON increases byte count, triggering 400 errors before hitting ServiceNow.
Solution: Serialize custom_fields.priority to a base64 string or flatten the object. Keep payloads under 5KB to avoid truncation during high throughput.