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

This topic contains 0 replies, has 1 voice, and was last updated by  arlt.tomas 6 months ago.

  • Creator
  • #62915



    I have a problem. I want to create, get, .. emails from the orocrm api. First when I opened api/doc/rest_json_api I didn’t see anything related with emails. Then I found that oro added automatic generation of api since June 2016. So I edited the api.yml in the EmailBundle. To this:

    I also tried just putting there: Oro\Bundle\EmailBundle\Entity\Email: ~
    It worked but I think it is not showing everything. F.e. when I tried to add a new email. Through sandbox on api/emails POST with following content:

    I got following error:

    I know what it means, but I haven’t seen any atribute in api/doc which I could set to connect the email with the address. Even I haven’t found relationships for email adresses.

    I think that it is not generating the api correctly. Because even if I would like to create a Email with attachment. The correct way of doing it (looked in to the entity model). Is to create EmailBody which can add EmailAttachment and EmailBody is then added to Email. The problem is that I can’t see EmailBody in the api/doc/rest_json_api even though it is enabled in the api.yml.

    Does somebody please know how to resolve this problem? Thank you :)

You must be logged in to reply to this topic.