I am in a situation, I need to validate if a user exists either by id or by email to see if I make the insertion because when I make the insertion of the contact and it exists I can not continue with the whole process.
I get the error.
I am in a situation, I need to validate if a user exists either by id or by email to see if I make the insertion because when I make the insertion of the contact and it exists I can not continue with the whole process.
I get the error.
@ATorresCha - my typical approach to test for whether a record already exists is a search based on your chosen form of ID. If the search is unsuccessful, you know that you can create the new record.
Hope this helps.
Steve
Hi @ATorresCha
You can use the HubSpot search API using the email or hubspot_id property and can validate if user exist or not.
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!