Skip to main content
Answered

How can I create a Contact with the same email address?

  • September 29, 2020
  • 3 replies
  • 37 views

Until API version 1.4.0 I was able to create users with the same email. For the uniqueness was used user_ID and worked fine, because in some cases I need to share the same email between different users.

After update API 2.0.0 it is not possible to create a `Contact` with the same email.

( "Users API & Leads API are deprecated and replaced with Contacts API. ")

Is there a way (or workaround) to create a `Contact` which can share the same email ?

Is it expected it is not possible to create a new `Contact` with the same email from archived `Contact` ?

Best answer by Roy

Hello @aleksei s11​ , It's possible to create contacts with the same email address only if you are tracking users with "user_id".

 

During creation contacts with API, just put:

 "external_id": "1000" (example) parameter and it will work.

 

More information can be found here:

https://www.intercom.com/help/en/articles/268-what-is-user_id-and-why-would-i-want-to-use-it

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • September 30, 2020

Hello @aleksei s11​ , It's possible to create contacts with the same email address only if you are tracking users with "user_id".

 

During creation contacts with API, just put:

 "external_id": "1000" (example) parameter and it will work.

 

More information can be found here:

https://www.intercom.com/help/en/articles/268-what-is-user_id-and-why-would-i-want-to-use-it


  • New Participant
  • 1 reply
  • September 30, 2020

Hi Roy, thank you for a quick response.

It works, thanks.👍


  • Author
  • New Participant
  • 1 reply
  • September 30, 2020

It is nice that it is possible to set it via HTTP request, but it would be perfect if we would have this property in latest JAVA SDK 2.8.1 but unfortunately it is not there.

I have created an issue in Github, https://github.com/intercom/intercom-java/issues/286

Maybe it will be added to the next version release?

 

Even More 🙂: I have already created a pull request on Github, I think it should speed up the process:

https://github.com/intercom/intercom-java/pull/272

 

 

Note: I refer to this java code ->

https://github.com/intercom/intercom-java/blob/7303ae2d4701c73f574ccfb32a0e5d4c4d8b36f8/intercom-java/src/main/java/io/intercom/api/Contact.java#L205


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings