Integration Hub help please - I want to sent nested data in an array outbound payload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 02:38 PM
I'm using json parser step to compile my outbound data.
It should look something like this.
"contacts": [
"contact": {
"contact_name": "",
"contact_id": "",
"contact_email": "",
"contact_responsibility": ""
},
"contact": {
"contact_name": "",
"contact_id": "",
"contact_email": "",
"contact_responsibility": ""
}
],
This should sent all the contacts in an account. I'm very new to json builder step and trying to lookup for examples and I'm not finding any good articles on this specific issue.
If you can guide me in the right direction, that would be great.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 03:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2025 01:33 PM
What you are showing above is the input section. That has type array.object.
But if you add a row to json builder flow object, this is not a data type but Array is.
So your answer gave me an idea. I added an input of Array.object and json builder entry of array type and I am able to pick data pill for the contacts object from input and map it to this json field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2025 09:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 07:04 PM
you can use script step and form the JSON and then use that in your next step.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader