Good morning,
I have a test flow where I want to just retrieve the last record ID within the list. In theory, what I want is to find the last item and then the first item in the list, divide all of that by 4000 to find how many iterations I need to loop, and finally delete every single record from there, but let's take a step back and figure out my first problem.
I have a variable that I'm initliazing and within the array, I want to return the first ID with this code but it's currently not working:
Body('Get_items')[0]?['value']?['ID']
here's my current setup:

And here's the error that I'm receiving:

Any ideas on how to fix this?