Having trouble with HTTPI request to create contacts in GHL and map to custom fields
To resolve the issue with the HTTP request to create contacts in GHL (Go High Level) and map them to custom fields, we need to ensure that the data is being correctly formatted and sent. Here are some steps to troubleshoot: 1. Check your JSON formatting: Make sure your request body is properly structured JSON. 2. Verify field mapping: Ensure that the custom fields in your request match exactly with the field names in GHL. 3. Review API documentation: Double-check the GHL API documentation for any specific requirements or limitations for creating contacts and mapping custom fields. 4. Test the API endpoint: Use a tool like Postman to test the API endpoint directly to isolate any issues. To help troubleshoot further, could you please copy and paste the JSON you're using for the HTTP request into the chat? This will allow me to review it for any potential formatting or structure issues.
https://app.clay.com/workspaces/522397/workbooks/wb_NFEMuzTiDtvF/tables/t_Zywr4EhPmhU9/views/gv_fcATrJ3iVPzn custom value is not going through
Hey Doug, thanks for reaching out! I jumped into the table and noticed you got it working now, correct? Glad it ended up running after but do let us know if it gives you any trouble again!
Hey Doug, got it fixed. Here a loom: https://www.loom.com/share/4b1f22d634114dd6b145ca7b13fcc74e If there's anything else I can assist you with, please let me know! 😊 Have a great Thursday, Daniel
Hey—do you have any documentation you can share on the API endpoint? That would help us troubleshoot the error more effectively.
Hi Daniel K. yes! sorry should have shared earlier. https://public-api.gohighlevel.com/#5fbc2b83-603d-4974-81c3-7d8658a79594
Any idea?
Hello Doug! Thanks for reaching out! Jumping in for Daniel here! Curious to know- do you want to send all ids in the custom field to the GHL? If yes since it is an array you are not able to map it in your body. I would recommend doing a Write to Table to bring all of the ids into a new table. I have created a video that addresses this process. I am also attaching a few resources for your reference: https://www.clay.com/university/guide/write-to-table-integration-overview https://www.clay.com/university/lesson/http-api-clay-101
Hi please see here I outlines the issue https://vento.so/view/7215e95e-e4d9-432b-a1c7-d5b9fe748504?utm_medium=share
Hey Doug! Thankyou so much for this video. It provided all the context I needed to answer your question. I am reviewing your situation and will get back to you ASAP! Thanks for your patience! :)
Hey Doug! I was able to identify where the issue was. We were initially defining the id as 'm0rKIFVgQJY9ECtE8pmF' and the value you are trying to send as the {{Credit balance}}. There is no need to do that. We can just directly put in "m0rKIFVgQJY9ECtE8pmF" : {{Credit balance}} instead of
The new method direclty defines it as a key value pair. Also changed customFields to customField as matched in the documentation. Recorded this video for your reference. Hope this solved the issue! :)
This fixed it! Thank you.
Do I still need the extra table you crested and the lookup column? Or can I remove those and it will still work?
Glad to know it solved your issue! Do not hesitate to reach out if you need any help! :)
I can clean that up for you!
Done! :)
Thanks