Hi!
Fairly new Alteryx user here. I'm trying to pull historical messages from the Yammer API using a macro. The API limits its response to 20 messages at a time but the older_than query parameter will let you pull 20 older messages by adding the message ID of the oldest original message in a new API call. The macro is supposed to do this loop until a certain date and union the output. I've tried a couple of ideas but have hit a roadblock.
1. My original macro design was not dynamic and I hard set it to stop after 65 iterations knowing the 64th was the last to receive data. My loop filter would not stop it before then. My thought is that the append fields would output even if one anchor did not receive data sending it into an infinite loop. However, the full data set would union and appear in the main workflow.



2. The new design idea was to pull the channel creation date from the meta info in the original API call in the main workflow and pass it into the macro as "validation date", put the append tool before the filter, and filter off whether the min date was > validation date. Then I would add a date and action interface tool in the main workflow to update the validation date and make the macro fully dynamic. The new macro design runs without error in isolation but does not output to the main workflow.



Any ideas why the output might not be unioning? Is an iterative macro the right idea? Does the engine iteration number have to be used?
Thanks!