118 lines
2.4 KiB
JSON
118 lines
2.4 KiB
JSON
{
|
|
"id": "20",
|
|
"name": "Create, update and get a contact in Google Contacts",
|
|
"nodes": [
|
|
{
|
|
"name": "On clicking 'execute'",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"position": [
|
|
190,
|
|
300
|
|
],
|
|
"parameters": {},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Google Contacts",
|
|
"type": "n8n-nodes-base.googleContacts",
|
|
"position": [
|
|
390,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"givenName": "n8n",
|
|
"familyName": "n8n",
|
|
"additionalFields": {}
|
|
},
|
|
"credentials": {
|
|
"googleContactsOAuth2Api": "google-contact"
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Google Contacts1",
|
|
"type": "n8n-nodes-base.googleContacts",
|
|
"position": [
|
|
590,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"fields": [],
|
|
"contactId": "={{$node[\"Google Contacts\"].json[\"contactId\"]}}",
|
|
"operation": "update",
|
|
"updateFields": {
|
|
"companyUi": {
|
|
"companyValues": [
|
|
{
|
|
"name": "n8n",
|
|
"title": "n8n",
|
|
"domain": "n8n.io",
|
|
"current": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"credentials": {
|
|
"googleContactsOAuth2Api": "google-contact"
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Google Contacts2",
|
|
"type": "n8n-nodes-base.googleContacts",
|
|
"position": [
|
|
790,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"fields": [
|
|
"organizations"
|
|
],
|
|
"contactId": "={{$node[\"Google Contacts\"].json[\"contactId\"]}}",
|
|
"operation": "get"
|
|
},
|
|
"credentials": {
|
|
"googleContactsOAuth2Api": "google-contact"
|
|
},
|
|
"typeVersion": 1
|
|
}
|
|
],
|
|
"active": false,
|
|
"settings": {},
|
|
"connections": {
|
|
"Google Contacts": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Google Contacts1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Google Contacts1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Google Contacts2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"On clicking 'execute'": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Google Contacts",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
} |