Compare commits
No commits in common. "78075c563e5221f4a84daa5d91e113a04972723e" and "7c1cab17ef7d801ad9436b845264234e6492dd08" have entirely different histories.
78075c563e
...
7c1cab17ef
|
@ -512,14 +512,14 @@
|
|||
"settings": {},
|
||||
"staticData": {
|
||||
"node:Gmail Trigger": {
|
||||
"lastTimeChecked": 1682957840,
|
||||
"lastTimeChecked": 1682951315,
|
||||
"possibleDuplicates": [
|
||||
"187d81ab10ba04c7"
|
||||
"187d7b7222d9c03f"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": [],
|
||||
"triggerCount": 1,
|
||||
"updatedAt": "2023-05-01T16:17:40.000Z",
|
||||
"updatedAt": "2023-05-01T14:28:40.000Z",
|
||||
"versionId": "25daa2a4-b5e0-4360-b8bb-1ded9c07453f"
|
||||
}
|
|
@ -5,7 +5,25 @@
|
|||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Email vorhanden?",
|
||||
"node": "IF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"IF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Segment hinzufügen",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Aus Segment entfernen",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
|
@ -44,53 +62,6 @@
|
|||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Email vorhanden?": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Segment hinzufügen",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "Aus Segment entfernen",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"GraphQL": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "IF1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"IF1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Abonniert",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"node": "GraphQL2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2023-04-30T12:45:41.935Z",
|
||||
|
@ -160,6 +131,26 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"boolean": [
|
||||
{
|
||||
"value1": "={{ $node.Webhook.json.body.accepts_marketing }}",
|
||||
"value2": "={{ true }}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "47173c1e-7a30-41c3-902d-3c271608c5e5",
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
440,
|
||||
260
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "oAuth2",
|
||||
|
@ -203,14 +194,14 @@
|
|||
"authentication": "headerAuth",
|
||||
"endpoint": "https://lana-kk.myshopify.com/admin/api/2022-01/graphql.json",
|
||||
"requestFormat": "json",
|
||||
"query": "={\n customers(first: 1, query: \"email:'dev@lanakk.com'\" ) {\n edges {\n node {\n id\n email\n marketingOptInLevel\n }\n }\n }\n}"
|
||||
"query": "={\n customers(first: 1, query: \"email:'dev@lanakk.com'\" ) {\n edges {\n node {\n legacyResourceId\n email\n marketingOptInLevel\n }\n }\n }\n}"
|
||||
},
|
||||
"id": "1bc94c14-ceda-42e1-94dc-1ac91ac72f8b",
|
||||
"name": "GraphQL",
|
||||
"type": "n8n-nodes-base.graphql",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
440,
|
||||
700,
|
||||
840
|
||||
],
|
||||
"credentials": {
|
||||
|
@ -220,53 +211,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"number": [
|
||||
{
|
||||
"value1": "={{ $node[\"Kontaktsegmente einlesen\"].json[\"lists\"][\"1\"][\"id\"] }}",
|
||||
"operation": "equal",
|
||||
"value2": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "162ccd38-f38c-4a76-8e56-1ab52b89601e",
|
||||
"name": "IF1",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
680,
|
||||
840
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://ma.lanakk.com/api/contacts/37380/segments",
|
||||
"authentication": "predefinedCredentialType",
|
||||
"nodeCredentialType": "mauticOAuth2Api",
|
||||
"options": {}
|
||||
},
|
||||
"id": "fdeca80d-3e71-43f0-b02e-11736038519a",
|
||||
"name": "Kontaktsegmente einlesen",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 3,
|
||||
"position": [
|
||||
240,
|
||||
840
|
||||
],
|
||||
"credentials": {
|
||||
"mauticOAuth2Api": {
|
||||
"id": "20",
|
||||
"name": "Mautic account"
|
||||
},
|
||||
"mauticApi": {
|
||||
"id": "23",
|
||||
"name": "Mautic account 2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
|
@ -278,58 +222,38 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"id": "47173c1e-7a30-41c3-902d-3c271608c5e5",
|
||||
"name": "Email vorhanden?",
|
||||
"id": "162ccd38-f38c-4a76-8e56-1ab52b89601e",
|
||||
"name": "IF1",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
440,
|
||||
260
|
||||
900,
|
||||
840
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "headerAuth",
|
||||
"endpoint": "https://lana-kk.myshopify.com/admin/api/2023-04/graphql.json",
|
||||
"requestFormat": "json",
|
||||
"query": "=mutation customerEmailMarketingConsentUpdate($input: CustomerEmailMarketingConsentUpdateInput!) {\n customerEmailMarketingConsentUpdate(input: $input) {\n customer {\n id\n }\n userErrors {\n field\n message\n }\n }\n}",
|
||||
"variables": "={ \"input\": { \"customerId\": \"gid://shopify/Customer/2298279854143\", \"emailMarketingConsent\": { \"consentUpdatedAt\": \"{{ $now }}\", \"marketingOptInLevel\": \"SINGLE_OPT_IN\", \"marketingState\": \"UNSUBSCRIBED\" } }}"
|
||||
"url": "https://ma.lanakk.com/api/contacts/18255/segments",
|
||||
"authentication": "predefinedCredentialType",
|
||||
"nodeCredentialType": "mauticOAuth2Api",
|
||||
"options": {}
|
||||
},
|
||||
"id": "d634f91d-8688-4503-9654-12a699e4dad6",
|
||||
"name": "GraphQL2",
|
||||
"type": "n8n-nodes-base.graphql",
|
||||
"typeVersion": 1,
|
||||
"id": "fdeca80d-3e71-43f0-b02e-11736038519a",
|
||||
"name": "Kontaktsegmente einlesen",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 3,
|
||||
"position": [
|
||||
920,
|
||||
980
|
||||
260,
|
||||
840
|
||||
],
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "14",
|
||||
"name": "Shopify lanakk.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"authentication": "headerAuth",
|
||||
"endpoint": "https://lana-kk.myshopify.com/admin/api/2023-04/graphql.json",
|
||||
"requestFormat": "json",
|
||||
"query": "=mutation customerEmailMarketingConsentUpdate($input: CustomerEmailMarketingConsentUpdateInput!) {\n customerEmailMarketingConsentUpdate(input: $input) {\n customer {\n id\n }\n userErrors {\n field\n message\n }\n }\n}",
|
||||
"variables": "={ \"input\": { \"customerId\": \"gid://shopify/Customer/2298279854143\", \"emailMarketingConsent\": { \"consentUpdatedAt\": \"{{ $now }}\", \"marketingOptInLevel\": \"SINGLE_OPT_IN\", \"marketingState\": \"SUBSCRIBED\" } }}"
|
||||
},
|
||||
"id": "dcf79e78-d4ba-4a55-bbc0-840c5c01dae4",
|
||||
"name": "Abonniert",
|
||||
"type": "n8n-nodes-base.graphql",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
920,
|
||||
700
|
||||
],
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "14",
|
||||
"name": "Shopify lanakk.com"
|
||||
"mauticOAuth2Api": {
|
||||
"id": "20",
|
||||
"name": "Mautic account"
|
||||
},
|
||||
"mauticApi": {
|
||||
"id": "23",
|
||||
"name": "Mautic account 2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -339,6 +263,6 @@
|
|||
"staticData": null,
|
||||
"tags": [],
|
||||
"triggerCount": 0,
|
||||
"updatedAt": "2023-05-02T03:58:48.000Z",
|
||||
"versionId": "6644c27e-48ab-4ee2-b82f-6348f9bfd153"
|
||||
"updatedAt": "2023-05-01T11:00:13.000Z",
|
||||
"versionId": "2480108f-5453-4dbb-98a2-f652025989db"
|
||||
}
|
Loading…
Reference in New Issue