ssossossosso

Forums

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

Forums OroCRM OroCRM – Programming Questions On uptade Contact

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

  • Creator
    Topic
  • #54150

    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
  • #54151
    Mike Kudelya
    Mike Kudelya
    Moderator
    #54152

    Alan Culvi Bertomeu
    Participant

    this is the class I use to connect to CRM

    On the corporate website

    #54153
    Mike Kudelya
    Mike Kudelya
    Moderator

    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.


    #54154

    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

    #54155

    Alan Culvi Bertomeu
    Participant

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

    #54156

    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