Discussion posts and replies are publicly visible
I think that you might have an easier time converting the resulting data to a dictionary or map using the a!fromjson function. This will give you an object into which you can reference elements using either dot notation or the index function.For example: Let's say that your payload comes back from an Integration Smart Service call in a process, and you save it into a process variable called pv!result. Appian doesn't have a "Dictionary" type, but you can do something in the Data Outputs of a Script Task such as:
pagingConfiguration: a!pagingInfo(startIndex:1, batchSize:-1)
If you save the result of that expression into a new process variable of type "DataSubset" called say, pv!dataPayload, you will be able to programmatically reference all of the elements using either .dot notation:
Or you could use the index function to retrieve a specific element (which is safer with respect to nulls)
Hope that helps.
© 2023 Appian. All rights reserved.