Flow Action - Dynamic Array.Object output variable

Community Alums
Not applicable

I'm looking to see if it is possible to have an Array.Object output variable in a Flow action be dynamic; meaning the # of properties is unknown until a Script activity runs within the action.

 

Consider the following REST response.  The userlist property can contain any number of properties.  I want userlist to be return as an action property with the caveat that it can contain X properties. 

 

{
    "msg""Successful",
    "displaycount""1",
    "userlist": [
        {
            "firstname""Test",
            "userKey"9999,
            "customeproperty65""Active",
            "username""009999"
        }
    ],
    "totalcount""1",
    "errorCode""0",
    "statusCode"200
}
 
Thanks for looking.
 
 
1 ACCEPTED SOLUTION

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
As far as I know, Unfortunately OOTB is not possible to have dynamic properties as you want.
What can be done here is to return the output as JSON string and while parsing make it again JSON obj.



Thanks and Regards,

Saurabh Gupta

View solution in original post

1 REPLY 1

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,
As far as I know, Unfortunately OOTB is not possible to have dynamic properties as you want.
What can be done here is to return the output as JSON string and while parsing make it again JSON obj.



Thanks and Regards,

Saurabh Gupta