How to correctly map data from array and bundles?

I have here two outputs:

  • first is where I have Key (this is user ID) and some result.
  • second modul carries list of people with their names and user IDs

So I want to make my final output look like this:

Filip Janik - 2
Jan Halouzka - 1

I am new, so I didnt come up with final solution and I am always stuck at some point.

If somebody can also help me, the best final look of output will be where person with highest number will have some emoji, for eg.:

Filip Janik - 2✅
Jan Halouzka - 1

Thank you very much for any help in advance!

1 Like

Hi @Valerij_Lejzo,

Welcome to the community!

I have your solution, but at scale this will not work well unfortunately. You have to set up a filter to check the userID’s between two modules, however, this will be very intensive to do. Ideally, you have to loop your output, but this is not possible within Make. You can maybe send a HTTP request to a Python script that will do the looping for you, and return the data to a Webhook module again to further process it within Make.

Anyway, here is the ‘solution’:

Hope this helps :folded_hands:

Hey Valerij,

can you show your complete flow and where the bundles are coming from?

As I understand you want the outputs from the first screenshot replaced with the names from the second one? If this is the case, then it will be better to keep the second one as an array, or aggregate them to an array. Then you can use the map() function to match the IDs from the first screenshot and find the names from the array containing the values from the second screenshot.