Flow Designer: Build Payload assistance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 08:04 AM
Hi Community,
I have the following Array of objects as an output within Flow designer:
{
"Results": [
{
"action": "Added",
"changed_by": "<sysID>",
"granted_by_group": "<sysID>,
"impacted_user": "<sysID>",
"object_type": null,
"role": "<sysID>",
"sys_created_on": "2025-02-11 19:43:10",
"target_name": null,
"update_set": null
}
]
}
But I need it in this format:
[
{
"action": "Added",
"changed_by": "<sysID>",
"granted_by_group": "<sysID>",
"impacted_user": "<sysID>",
"object_type": null,
"role": "<sysID>",
"sys_created_on": "2025-02-11 19:43:10",
"target_name": null,
"update_set": null
}
]
How will I be able to do this in Flow Designer? I need an Array of Objects but not the outer "object" structure (basically the "Results" removed")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 06:28 AM
I figured it out.
I changed the Output of the flow to be a JSON variable and used a Script step to generated the JSON. It seems to work better that way.