Gmail Multiple labels: how to extract them

I’m using make.com to summarize my Gmail emails over the last 24 hours. My current workflow successfully retrieves and summarizes the emails, but I’m having trouble capturing all the labels associated with each email. Currently, my setup only retrieves one label per email, which works fine for emails with a single label. However, for emails with multiple labels, I’m missing important information.

How can I modify my make.com scenario to retrieve and include all labels for each summarized email, particularly when an email has multiple labels assigned to it? I’d like the summary to list all relevant labels for each email, not just one. Any suggestions for adjusting my workflow to accomplish this would be greatly appreciated.

blueprint.json (33.2 KB)

Welcome to the Make community!

Why are you doing this to set a new labels variable, when it’s already available from the first module?

You probably just need to use the built-in function join to combine the labels into a comma-separated text here:

Hope this helps! Let me know if there are any further questions or issues.

@samliew

1 Like

Thank you very much.