Ok, @Hueseyin took me more time than expected but figured it out. I tested the workflow with the trigger and worked fine for me. The only thing that comes to mind is that you are not selecting the right source when creating the trigger. Just choose the 3 available options, and you should be able to test it by just adding a member manually to a list/audience and when the member is added from a form, for example.
I added the interest group
field, it will automatically populate all the groups from a particular list, but it won’t populate the group category field. However, added the resource List Group
which will allow you to get the group category id quickly.
The workflow below covers the use case you are interested in. Of course, you are not going to be able to use it until the new changes are released. We will keep you posted.
The workflow has two lists/audiences: testing and testing2. The testing audience has a group called ‘interest’ and two fields ‘interest1’ and ‘interest2’. The second audience testing2 has a group called ‘interest’ and a field called ‘interest3’.
When someone is added to the list/audience testing, the trigger fires then the if function checks if the person has an interest1 if so, then add that person on the list/audience testing2 and add the interest3.
If something it’s not clear please let me know.
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
230,
300
]
},
{
"parameters": {
"list": "49d9db79b3",
"events": [
"subscribe"
],
"sources": [
"user",
"admin",
"api"
]
},
"name": "Mailchimp Trigger",
"type": "n8n-nodes-base.mailchimpTrigger",
"typeVersion": 1,
"position": [
510,
300
],
"credentials": {
"mailchimpApi": "asasas"
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$node[\"Mailchimp Trigger\"].json[\"data[merges][INTERESTS]\"]}}",
"operation": "contains",
"value2": "interest1"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
760,
300
]
},
{
"parameters": {
"list": "49d9db79b3",
"email": "[email protected]",
"status": "subscribed",
"options": {},
"groupsUi": {
"groupsValues": [
{
"categoryId": "6734ffa700",
"categoryFieldId": "theinterestgroup"
}
]
}
},
"name": "Mailchimp",
"type": "n8n-nodes-base.mailchimp",
"typeVersion": 1,
"position": [
1050,
180
],
"credentials": {
"mailchimpApi": "asasas"
}
},
{
"parameters": {},
"name": "NoOp",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1050,
460
]
}
],
"connections": {
"Mailchimp Trigger": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Mailchimp",
"type": "main",
"index": 0
}
],
[
{
"node": "NoOp",
"type": "main",
"index": 0
}
]
]
}
}
}