OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions Problem creating a contact via API

This topic contains 2 replies, has 2 voices, and was last updated by  Leandro Banchio 7 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #25346

    Leandro Banchio
    Participant

    Hi!

    I’m playing with OroCrm. I am currently trying to create a new contact with the name and email. Unfortunately I was unable to create the correct request.

    This is the body of the request

    Request URL

    Request body

    Error :(

    I tried many things but I can’t find the solution

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #25347

    Vova Soroka
    Participant

    Hi Leandro,

    Unfortunately “included” section in POST requests is supported only since version 2.0. In previous version you have to use 2 POST requests, one to create a contact email, and another to create a contact.

    Since version 2.0 you can do the same via one POST request using “included” section. But take into account that contact emails are not a relationship. It is an attribute. So, the POST request for v. 2.0 will be:

    #25348

    Leandro Banchio
    Participant

    It works. Thanks for the advice!

    I created the entities using two requests.

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

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top