Skip to content
Trouble updating co...
 
Notifications
Clear all

Trouble updating contacts in GHL

4 Posts
4 Users
0 Reactions
3 Views
seguelac
(@seguelac)
Posts: 1
New Member
Topic starter
 

Hello,

I've encountered an issue when using the contact update node in callin.io.

Retrieving custom fields from lists works correctly if the appropriate scopes are defined.

These are the scopes I'm currently using:

opportunities.readonly opportunities.write users.readonly locations.readonly locations/customValues.write locations/customFields.write calendars.write calendars/events.write calendars/groups.readonly calendars/events.readonly calendars/resources.write calendars.readonly socialplanner/post.readonly socialplanner/post.write workflows.readonly medias.readonly medias.write locations/customFields.readonly socialplanner/oauth.readonly socialplanner/oauth.write socialplanner/account.readonly contacts.readonly contacts.write

However, the request to update a contact, including custom fields, is not functioning.

It only works when I use a custom HTTP request.

This configuration does not work:

json
{
"nodes": [
{
"parameters": {
"operation": "update",
"contactId": "={{ $(‘Webhook’).item.json.body.contact_id }}",
"updateFields": {
"customFields": {
"values": [
{
"fieldId": {
"__rl": true,
"value": "WEWJooOAII3QBgrOy1Oy",
"mode": "list",
"cachedResultName": "Need"
},
"fieldValue": "={{ $(‘need_ai_gen’).item.json.text }}"
}
]
}
},
"requestOptions": {}
},
"type": "n8n-nodes-base.highLevel",
"typeVersion": 2,
"position": [
-1940,
1460
],
"id": "4018bfbc-7713-4589-852b-835489b6bdaf",
"name": "HighLevel1",
"credentials": {
"highLevelOAuth2Api": {
"id": "qzLil7gkEUtpfeKt",
"name": "HighLevel Outbound calling Agent"
}
}
}
],
"connections": {},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "2a877724f0669f36eb10a98e65f520962db9845ee37281fe85585b8f600c1c67"
}
}

This configuration works:

json
{
"nodes": [
{
"parameters": {
"method": "PUT",
"url": "<a href="https://services.leadconnectorhq.com/contacts/" rel="noopener nofollow ugc"> https://services.leadconnectorhq.com/contacts/</a>{{ $(‘Webhook’).item.json.body.contact_id }}",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "highLevelOAuth2Api",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/json"
},
{
"name": "Version",
"value": "2021-07-28"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{n "tags": [n,n "enriched"
],n "customFields": [
{
"id": "26Hxj3wMixNvyS7rkmQr",
"key": "contact.specific_service",
"field_value": "{{ $(‘niche3’).item.json.text }}"
},
{
"id": "WEWJooOAII3QBgrOy1Oy",
"key": "contact.need",
"field_value": {{ JSON.stringify($(‘need_ai_gen’).item.json.text) }}
},
{
"id": "aVJ2fvZ2hA8Cpco94pbz",
"key": "contact.niche",
"field_value": "{{ $json.text }}"
}
]
}n",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-1880,
2200
],
"id": "1bf7c19d-5b97-4a19-849d-103554e9239f",
"name": "Update Lead GHL",
"credentials": {
"highLevelOAuth2Api": {
"id": "bE4ipFYG3zbrjFQy",
"name": "HighLevel Voice AI Snapshot"
},
"highLevelApi": {
"id": "t1sCkVnSK3TQ6UlX",
"name": "HighLevel Outbound caller"
}
}
}
],
"connections": {
"Update Lead GHL": {
"main": [
"<span class="chcklst-box fa fa-square-o fa-fw"></span>"
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "2a877724f0669f36eb10a98e65f520962db9845ee37281fe85585b8f600c1c67"
}
}

Thanks

Debug info

core

  • callin.ioVersion: 1.78.1
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.18.2
  • database: postgres
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)
  • consumerId: be566eb0-a279-4d8f-bf2d-844d7a68393e

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem
 
Posted : 18/02/2025 9:50 am
n8n
 n8n
(@n8n)
Posts: 97
Trusted Member
 

It appears your topic is missing some crucial details. Could you please provide the following information, if relevant?

  • callin.io version:
  • Database (default: SQLite):
  • callin.io EXECUTIONS_PROCESS setting (default: own, main):
  • Running callin.io via (Docker, npm, callin.io cloud, desktop app):
  • Operating system:
 
Posted : 18/02/2025 9:50 am
solomon
(@solomon)
Posts: 78
Trusted Member
 

To share your workflow JSON code, please paste it inside a code block:

like this

However, yes… there are instances where API requests will only function via HTTP requests. I'd suggest becoming accustomed to this, as it's quite common when delving into more complex APIs.

If you require assistance with building the HTTP request, feel free to ask.

Did my response address your question? Please remember to mark it as a solution.

 
Posted : 24/02/2025 11:24 pm
system
(@system)
Posts: 332
Reputable Member
 

This thread was automatically closed 90 days following the last response. New replies are no longer permitted.

 
Posted : 25/05/2025 11:25 pm
Share: