OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions Accessing Email api

This topic contains 0 replies, has 1 voice, and was last updated by  arlt.tomas 6 years, 8 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
  • #36497

    arlt.tomas
    Participant

    Hello,

    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 :)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top