Thank you for the suggestion, I have done a test log
Note: XYZ is the retracted data, but otherwise correct
[
{
"UnparsedOutputs": {
"FirstName": "xyz",
"LastName": "xyz",
"CompanyName": "",
"Email": "
[email protected]",
"PhoneBusiness": "xyz",
"PhoneMobile": "",
"FaxBusiness": "",
"ContactUrl": "
https://app.hubspot.com/contacts/xyz/contact/xyz",
"EntityId": "26451",
"EntityType": "Contacts"
},
"FirstName": "xyz",
"LastName": "xyz",
"Email": "
[email protected]",
"ContactUrl": "
https://app.hubspot.com/contacts/26307108/contact/26451",
"CompanyName": "",
"PhotoUrl": null,
"ContactType": 0,
"PhoneBusiness": "xyz",
"PhoneBusiness2": null,
"PhoneHome": null,
"PhoneHome2": null,
"PhoneMobile": "",
"PhoneMobile2": null,
"PhoneOther": null,
"FaxBusiness": "",
"FaxHome": null,
"Pager": null,
"ContactRawData": "26451|Contacts"
}
]
So it does successfully find my test phone number, it finds the correct entry in HubSpot with the right name.
But ringing the 3CX system brings up "New 3CX Contact xyz"
In 3CX it exists in a contact book called 'CRM'. There are multiple entries and there used to be multiple entries in HubSpot (we deleted those entries).
–––––––––––––
The log:
Started scenario with empty id
Started Auth
Request text:
https://api.hubapi.com/oauth/v1/token
Request form value refresh_token set to eu1-f30b-aea6-47f8-abd2-6924373c9511
Request form value grant_type set to refresh_token
Request form value client_id set to 6da8da6a-1e80-4549-a105-ff4c7b152c2b
Request form value client_secret set to 47571936-4024-48f4-82a6-8b6f0fbbbf3e
Response text: {"token_type":"bearer","refresh_token":"eu1-f30b-aea6-47f8-abd2-6924373c9511","access_token":"CO6M8JHzMBIOQAEAQAAAAQAAAAAIAAEYpNTFDCDG2LwXKJGqVjIUqmjGLPEIM53lvyHS9zQoNKmAfik6MAAAAEcAAAAAAAAAAAAAAAAAgAAAAAAAAAAAACAAAAAAAOABAAAAIAAAHAAAABAwAkIUBa29YT4FJ1rD8obJ9v9yER0JgodKA2V1MVIAWgA","expires_in":1800}
Response finished
Variable AccessToken set to CO6M8JHzMBIOQAEAQAAAAQAAAAAIAAEYpNTFDCDG2LwXKJGqVjIUqmjGLPEIM53lvyHS9zQoNKmAfik6MAAAAEcAAAAAAAAAAAAAAAAAgAAAAAAAAAAAACAAAAAAAOABAAAAIAAAHAAAABAwAkIUBa29YT4FJ1rD8obJ9v9yER0JgodKA2V1MVIAWgA
Variable ExpiresIn set to 1800
Started GetPortalID
Request text:
https://api.hubapi.com/integrations/v1/me
Response text: {"portalId":26307108,"timeZone":"Europe/London","accountType":"STANDARD","currency":"GBP","utcOffset":"+01:00","utcOffsetMilliseconds":3600000}
Response finished
Variable PortalID set to 26307108
Finished GetPortalID
Finished Auth
Request text:
https://api.hubapi.com/crm/v3/objects/companies/search
Request message: {"properties":["name","phone"],"filterGroups":[{"filters":[{"propertyName":"phone","operator":"EQ","value":"xyz"}]}]}
Response text: {"total":0,"results":[]}
Response finished
Finished scenario with empty id
Started scenario with empty id
Request text:
https://api.hubapi.com/crm/v3/objects/contacts/search
Request message: {"properties":["firstname","lastname","company","email","phone","mobilephone","fax"],"filterGroups":[{"filters":[{"propertyName":"phone","operator":"EQ","value":"xyz"}]},{"filters":[{"propertyName":"mobilephone","operator":"EQ","value":"xyz"}]},{"filters":[{"propertyName":"fax","operator":"EQ","value":"xyz"}]}]}
Response text: {"total":1,"results":[{"id":"26451","properties":{"company":null,"createdate":"2023-01-06T17:46:43.077Z","email":"
[email protected]","fax":null,"firstname":"xyz","hs_object_id":"26451","lastmodifieddate":"2023-03-30T09:04:32.570Z","lastname":"xyz","mobilephone":null,"phone":"xyz"},"createdAt":"2023-01-06T17:46:43.077Z","updatedAt":"2023-03-30T09:04:32.570Z","archived":false}]}
Response finished
Variable ContactID set to 26451
Variable FirstName set to xyz
Variable LastName set to xyz
Variable CompanyName set to
Variable Email set to
[email protected]
Variable PhoneBusiness set to xyz
Variable PhoneMobile set to
Variable FaxBusiness set to
Finished scenario with empty id
Result obtained
as far as I can tell it matches. In this case xyz is the phone number with leading 0 format.