Hmm, well, it depends what you're going to do with it. I see you're going to use it as a parameter for a URL, but, will you have all of the collected IDs in a single URL parameter, or will you generate a URL for each person dependent on that?
If the latter, then I'm guessing you're also going to want to connect the ID you get to the email address, so you'll probably want to build an array.
So if you initialize an Array at the top of your flow, then after your Get Items, you can do "Append to Array" and do something like this:
{
"Email":"dynamic content of users email",
"URL":"www.URL.com/whatever?ID=DYNAMICCONTENTID"
}
That way, outside of your apply to each, you can send the email to each person ............... ..........but now that I've said that, I don't know why you wouldn't just send it right there in the loop, and not need to hold the data at all.
Errr. I've overcomplicated it. Can you tell me what your URL outcome looks like? Is it 1 URL per person, sent to each person? Is it 1 URL per person with all URLs in a single email with their name? What does the output look like?