Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 6 replies, has 2 voices, and was last updated by  Alan Culvi Bertomeu 1 year, 1 month ago.

  • Creator
    Topic
  • #22975

    Alan Culvi Bertomeu
    Participant

    This is array

    But returns validation error “One of the emails should be established as a primary.”

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #22979
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi

    Can you show me working example (code) ?

    #22982

    Alan Culvi Bertomeu
    Participant

    this is the class I use to connect to CRM

    On the corporate website

    #23010
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi,

    Thank you for your code!

    You must change false to null, for example:

    I suggest you take a look at our new json api, which we introduced in 1.10 version. As announce said:

    The old API will be deprecated, but will still be available for at least the next two release cycles to give you the time to transition to the new API. We recommend doing it as soon as possible, as none of the new features will support the old API.

    Here i explained how to use this new api.

    #23065

    Alan Culvi Bertomeu
    Participant

    Good Morning,

    I’m trying to implement the new API.

    To not duplicate contacts intneto search by email:
      ‘/apì/contacts?filter[emails.email.eq]=’.$contact[’email’]

    I have made several prueva (search by name, last name) and always returns the same error

    I have to make some sort of update on servers? Or something?

    Thank you

    #23082

    Alan Culvi Bertomeu
    Participant

    Solution for the filter, I have put in Resources\config\oro\api.yml

    #23095

    Alan Culvi Bertomeu
    Participant

    My solution.

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

You must be logged in to reply to this topic.

ssossossosso