I am using an HTTP Request to call an API.
The response has multiple records returned in JSON format.
I need to use data associated with the highest RecordId number…
I have used Deserialize JSON in the past and can call out a specific JSON Path when I knew the correct response number [0],[1], etc. but this time I don’t know the order the records will come.
Below is a (simplified) JSON response with two sample records.
In the sample I need the following two values
(because the recordId for the first record[0] is highest in the sample.)
3520729 from .ResponseData.Records[0].RecordId
12 from .ResponseData.Records[0].RecordImage
The real data can contain MANY records in the response, not just two like the sample, and in no particular order.
How do I go about getting these two values?
{
“ResponseData”: {
“Records”: [
{
“CurrentRecord”: “200679600”,
“RecordId”: 3520729,
“RecordImage”: 12
},
{
“CurrentRecord”: “200679600”,
“RecordId”: 2403386,
“RecordImage”: 6
}
]
}
}
Thanks in advance to this super helpful community!

