ssossossosso

Forums

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

This topic contains 2 replies, has 2 voices, and was last updated by  Leandro Banchio 9 months, 4 weeks ago.

  • Creator
    Topic
  • #30194

    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
  • #30394

    Vova Soroka
    Oro Core

    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:

    #30408

    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)

You must be logged in to reply to this topic.