Hello,
I've created a flow that iterates through all messages in a group. I have used "Get messages in a group (V2)" connector. My flow is built the way that:
This way after few iterations I got all the posts (not replies) in my array. At least that's what I thought but there are some posts being missed, and I'm not sure what could be the reason. I literally scrolled through posts to troubleshoot that and found no rule behind that. What is more:
Also, the connector returns messages in some random order, not by date created and not by message ID and I have to sort the array in each iteration (in first version I was using "last" function, to get the right Id of last = oldest message in an array, but then I found this is incorrect approach as the oldest one could come as the fifth one on the list). Is this a known behavior? I'm not sure what else I could try, to properly iterate through all of them...
So I think I've found the pattern/problem. The name of field in connector shouldn't say "recent posts". It should say "recently active posts". Each time an old post is commented etc. it will get to the top. So a post from 1 year ago can be returner by api as the first one and in your array of 20 posts, the ID of the oldest one will be useless for our scenario. Very unfortunate and makes the action/connector invalid.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492