I am running into a mismatch between the input-level metadata in my workflow and the API response which returns multiple results per search. Because the API results don’t retain any knowledge of the originating search query, I have to figure out how to manually reattach that metadata to each result after unwrapping them, but all my attempts have failed. I have tried: using function nodes after the API call to try & append the metadata back onto each result; attempted to merge the input metadata & API results after unwrapping using combinations of merge nodes & manual loops; tried to split in batches, but the metadata still gets detached.
The number of API results per input is variable, so I thought the Function node would allow me to map the metadata to each result. I think part of the complicating factor is I am running two API calls here.
Please share your workflow in a code block as we have no context of what you’re trying to do.