Compare commits

..

2 Commits

Author SHA1 Message Date
m3tam3re 6e8266191e [N8N Backup] Shopify <--> Mautic.json (different) 2023-05-09 12:00:32 +02:00
m3tam3re 2bcab19b8d [N8N Backup] Rechnungen -> DATEV.json (different) 2023-05-09 12:00:30 +02:00
2 changed files with 125 additions and 58 deletions

View File

@ -512,14 +512,14 @@
"settings": {}, "settings": {},
"staticData": { "staticData": {
"node:Gmail Trigger": { "node:Gmail Trigger": {
"lastTimeChecked": 1683549862, "lastTimeChecked": 1683626203,
"possibleDuplicates": [ "possibleDuplicates": [
"187fb64501523ded" "187fff122cbd3873"
] ]
} }
}, },
"tags": [], "tags": [],
"triggerCount": 1, "triggerCount": 1,
"updatedAt": "2023-05-08T12:45:28.000Z", "updatedAt": "2023-05-09T09:57:28.000Z",
"versionId": "25daa2a4-b5e0-4360-b8bb-1ded9c07453f" "versionId": "25daa2a4-b5e0-4360-b8bb-1ded9c07453f"
} }

View File

@ -16,18 +16,7 @@
"main": [ "main": [
[ [
{ {
"node": "Kontaktsegmente einlesen", "node": "Move Binary Data",
"type": "main",
"index": 0
}
]
]
},
"Kontaktsegmente einlesen": {
"main": [
[
{
"node": "GraphQL",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
@ -138,6 +127,46 @@
} }
] ]
] ]
},
"Crypto": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "GraphQL",
"type": "main",
"index": 0
}
],
[
{
"node": "No Operation, do nothing1",
"type": "main",
"index": 0
}
]
]
},
"Move Binary Data": {
"main": [
[
{
"node": "Crypto",
"type": "main",
"index": 0
}
]
]
} }
}, },
"createdAt": "2023-04-30T12:45:41.935Z", "createdAt": "2023-04-30T12:45:41.935Z",
@ -218,7 +247,9 @@
"parameters": { "parameters": {
"httpMethod": "POST", "httpMethod": "POST",
"path": "c83eb6ce-40dd-418c-952a-ed62a051a00b", "path": "c83eb6ce-40dd-418c-952a-ed62a051a00b",
"options": {} "options": {
"rawBody": true
}
}, },
"id": "4a01eed5-9378-47f3-98ab-e00848ba0093", "id": "4a01eed5-9378-47f3-98ab-e00848ba0093",
"name": "Webhook1", "name": "Webhook1",
@ -235,15 +266,15 @@
"authentication": "headerAuth", "authentication": "headerAuth",
"endpoint": "https://lana-kk.myshopify.com/admin/api/2022-01/graphql.json", "endpoint": "https://lana-kk.myshopify.com/admin/api/2022-01/graphql.json",
"requestFormat": "json", "requestFormat": "json",
"query": "={\n customers(first: 1, query: \"email:'{{ $node[\"Webhook1\"].json[\"body\"][\"mautic.lead_post_save_update\"][0][\"contact\"][\"fields\"][\"core\"][\"email\"][\"value\"] }}'\" ) {\n edges {\n node {\n id\n email\n marketingOptInLevel\n }\n }\n }\n}" "query": "={\n customers(first: 1, query: \"email:'{{ $json[\"body\"][\"mautic.lead_channel_subscription_changed\"][0][\"contact\"][\"fields\"][\"core\"][\"email\"][\"value\"] }}'\" ) {\n edges {\n node {\n id\n email\n marketingOptInLevel\n }\n }\n }\n}"
}, },
"id": "1bc94c14-ceda-42e1-94dc-1ac91ac72f8b", "id": "1bc94c14-ceda-42e1-94dc-1ac91ac72f8b",
"name": "GraphQL", "name": "GraphQL",
"type": "n8n-nodes-base.graphql", "type": "n8n-nodes-base.graphql",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
440, 940,
840 700
], ],
"credentials": { "credentials": {
"httpHeaderAuth": { "httpHeaderAuth": {
@ -255,11 +286,10 @@
{ {
"parameters": { "parameters": {
"conditions": { "conditions": {
"number": [ "string": [
{ {
"value1": "={{ $node[\"Kontaktsegmente einlesen\"].json[\"lists\"][\"1\"][\"id\"] }}", "value1": "= {{ $node.Webhook1.json.body[\"mautic.lead_channel_subscription_changed\"][0].new_status }} ",
"operation": "equal", "value2": "contactable"
"value2": 1
} }
] ]
} }
@ -269,36 +299,10 @@
"type": "n8n-nodes-base.if", "type": "n8n-nodes-base.if",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
680, 1180,
840 700
] ]
}, },
{
"parameters": {
"url": "=https://ma.lanakk.com/api/contacts/{{ $json[\"body\"][\"mautic.lead_post_save_update\"][0][\"contact\"][\"id\"] }}/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": { "parameters": {
"conditions": { "conditions": {
@ -332,8 +336,8 @@
"type": "n8n-nodes-base.graphql", "type": "n8n-nodes-base.graphql",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
920, 1420,
980 840
], ],
"credentials": { "credentials": {
"httpHeaderAuth": { "httpHeaderAuth": {
@ -355,8 +359,8 @@
"type": "n8n-nodes-base.graphql", "type": "n8n-nodes-base.graphql",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
920, 1420,
700 560
], ],
"credentials": { "credentials": {
"httpHeaderAuth": { "httpHeaderAuth": {
@ -461,17 +465,80 @@
"name": "lanakk.com" "name": "lanakk.com"
} }
} }
},
{
"parameters": {
"action": "hmac",
"type": "SHA256",
"value": "={{ $json.data }}",
"dataPropertyName": "=key",
"secret": "0a9dcfe4f362625efc5a38bc709598c61869552fcfc1aceb8fc08edad8dd3825",
"encoding": "base64"
},
"id": "31deaf45-706d-4bcc-b92a-1f0ed7f8ff9e",
"name": "Crypto",
"type": "n8n-nodes-base.crypto",
"typeVersion": 1,
"position": [
460,
840
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json[\"headers\"][\"webhook-signature\"] }}",
"value2": "={{ $json.key }}"
}
]
}
},
"id": "dec9961f-d754-4d87-980f-61853ea66a14",
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
680,
840
]
},
{
"parameters": {
"setAllData": false,
"options": {}
},
"id": "cfff982c-953b-49fd-8d43-340ca7a1f447",
"name": "Move Binary Data",
"type": "n8n-nodes-base.moveBinaryData",
"typeVersion": 1,
"position": [
240,
840
]
},
{
"parameters": {},
"id": "9f471b45-d736-494d-9221-49c45f700c8b",
"name": "No Operation, do nothing1",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
940,
1000
]
} }
], ],
"pinData": {}, "pinData": {},
"settings": {}, "settings": {},
"staticData": { "staticData": {
"node:Shopify Trigger": { "node:Shopify Trigger": {
"webhookId": 1264671260937 "webhookId": 1264992682249
} }
}, },
"tags": [], "tags": [],
"triggerCount": 2, "triggerCount": 2,
"updatedAt": "2023-05-08T03:29:30.000Z", "updatedAt": "2023-05-09T04:32:31.000Z",
"versionId": "c7e602bc-6a91-44f7-a82f-8afb75afde12" "versionId": "9edfa535-aa10-45dc-a499-913ec16830a5"
} }