Hi, We have livechat using Commversion on our website and this is integrated into our Hubspot using an API.
It has been working fine until December when now the below happens.
It creates the contact fine, but when it tries to add the live chat transcript into the notes it fails with the error below
{“status”:“error”,“message”:“one or more associations are not valid”,“correlationId”:“f6ae2d2e-5bfb-4689-8c4a-0fef027a7104”,“errors”:[{“context”:{“validationResult”:[“USER_DOES_NOT_HAVE_PERMISSIONS”]}}],“category”:“BAD_REQUEST”}
We can’t seem to identify why this is not working, we have looked into permissions.
Each contact and note is assigned to a contact owner in hubspot who will then follow up on the contact. We have reached out to hubspot but they have not been able to help.
Any ideas appreciated!
Hi there, @Will-Hopkins ! It’s challenging to know exactly what changed, but I do have a suggestion to try to isolate the issue. Occasionally, this occurs if the Private App was created by a user who is no longer active in your portal. If you are using OAuth and not a Private App, please let us know.
Steps:
- create a fresh Private App in HubSpot with these required scopes:
— `crm.objects.contacts.write`
— `crm.objects.contacts.read`
- Update your app to use the new Private App credentials and test if the error persists
- You could set this up using a Developer Test Account if you would rather not affect your production portal
Could you share a sample of your API request (with sensitive data removed)? This would help us verify the request structure.
Talk soon! — Jaycee
Hey, @Will-Hopkins Thanks for catching that. I edited my post to remove the incorrect scope detail. — Jaycee
Hi Jaycee,
Thank you for your reply.
I will do this - although there is no options to add crm.objects.notes.write under scopes - it does not appear as an option.
Thanks
Will
Hi Jaycee,
Thank you so much, our integration is now working under the new private app, so it seems something went wrong in the permissions of the old one.
Thanks again
Will