Flow Designer: Build Payload assistance

Mike49
Tera Contributor

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")

 

 

1 REPLY 1

Mike49
Tera Contributor

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.