ssossossossosso

Forums

Forums OroCRM OroCRM – Programming Questions Rest API Get filters

This topic contains 3 replies, has 3 voices, and was last updated by  Dima Soroka 3 years, 8 months ago.

  • Creator
    Topic
  • #22149

    raul782
    Participant

    Hi guys,

    Is there a way on the contact API to get a contact by email instead of by id,
    that way I can know for sure if the contact already exist or not

    Is there any other way to prevent the creation of duplicate contacts

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #22150

    Alexandr Smaga
    Participant

    Hello.

    Now it’s impossible to get contact by email. But anyway it will not help you because contact could has more than one email and it’s correct that multiple contacts have the same email (e.g. two contacts have the private emails and corporate one assigned).

    #22151

    raul782
    Participant

    Hi,

    Thanks for the hint, I guess the main concern is to keep consistent our frontend/backend with OroCrm and consolidate all our contacts coming from different places in one place, the CRM.

    So I believe, we have to build some logic on top of OroCrm to deal with our own scenarios.

    So I’m looking for a unique identifier, between our customers from our shopping cart and Crm.
    Probably I will have to extend contact entity to deal with this or is this something that OroCrm has already built-in?

    Thanks

    #22152

    Dima Soroka
    Keymaster

    This is an important topic for us as well. Unique identifier depends on data channel (for example email for ecommerce customers, phone number for POS, etc) and we are going to solve this problem as well as will add email to contact filters list.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.