Batch add Mailchimp tags based on a member's data

Hello everyone,

I’ve just started exploring n8n and would really appreciate your help!
I need an automated workflow to monitor new Mailchimp members in list X and check if the same member is in list Y.
If it is, then I need to copy all tags from that member in list Y to that member in list X.
I have set up all the steps except the last one - copying the tags.
There is an action “Create member tags”, but the tags there are presented as items. I don’t quite understand how to auto-populate these items from a group of tags.
Also, I have searched the community and found this post about HTTP request Mailchimp "Update Operation" missing "Tags" field - #7 by Fernanda_Silva
But I don’t know JSON enough to create code for that to add a group of tags, not just one.
If you have any ideas, I will greatly appreciate it!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

1.49.0,
SQLite
own, main
Docker
Mac OS

hello @alexorlov

Can you provide the workflow? You can copy all the content (ctrl+a > ctrl+c) and past it here after pressing the </> button

Thank you!
Here is my workflow:

The issue is only with the final step, I don’t understand how to add several tags to a member:

Well, don’t know it that will work: add a tag, set the mode to Expression and set the value to {{ $json.tags }}

Other option would be by using the HTTP Node and the Mailchimp API ( Lists/Audiences > Member Tags | Mailchimp Marketing API Reference | Mailchimp Developer), as the Mailchimp Node have limited capabilities.

There is another option to update the member multiple times (split the tags into different items and call the Node for each tag item), but that’s very API inefficient way

Thank you, but it doesn’t work as well. I’ll try the HTTP Node! :slight_smile:

1 Like

I guess with http request could be easier, but thinking here what would i do is to get the members from both lists, and compare with a code node could be, and work with that result list and then go to add the tags.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.