OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions Create custom entity from Rest API

This topic contains 9 replies, has 2 voices, and was last updated by  Mike Kudelya 7 years, 4 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
  • #28965

    KnutFr
    Participant

    Hi,

    Is it possible to create a custom entity using the Rest API ?
    I have not seen call for the creation at the documentation /api/doc

    Thanks,
    KnutFr

Viewing 9 replies - 1 through 9 (of 9 total)
  • Author
    Replies
  • #28966

    Mike Kudelya
    Participant

    Hi,

    Do you mean create records for custom entity?

    #28967

    KnutFr
    Participant

    Hi,

    I would like to be able to create custom entity table, and also create records obviously.

    Thanks again,
    KnutFr

    #28968

    Mike Kudelya
    Participant

    Hi,

    I have created ‘testing’ custom entity with ‘name’ field.

    Here is my testing.sh:

    and testing.json:

    At the moment the orocrm does not support entity table creation via api.

    #28969

    KnutFr
    Participant

    Hi, is there an update about this point with last version of orocrm ?

    Thanks, KnutFr

    #28970

    Mike Kudelya
    Participant

    Hi

    Can you tell me, what do you mean, please? Point of what ?

    #28971

    KnutFr
    Participant

    Hi Mike,

    What I would like to do is exactly what you can do on this link : url/entity/extend/entity/create but I would like to be able to do this via an API call. Also I would like to update / Delete custom entity structure.

    Obviously I also want to create generic call for Create / Read / Update & Delete single record of custom entity.

    For example:

    Is there some existing call that can do things like that ?

    Thanks.

    #28972

    Mike Kudelya
    Participant

    Hi

    1.10 version of oro has already been contain new JSON API. http://[domain]/api/doc/rest_json_api includes list of entities which ready to work with api and all required api url’s, before use it click on Generate Key button on our profile page (/user/profile/view). Also please read the documentation.

    #28973

    KnutFr
    Participant

    Hi,

    Thanks for your reply. I’m already using this API for existing Oro entity, but I don’t understand how to exaclty use it to create my own entity. (What I would exactly like to do is create a custom lead entity processed by an external existing software. For testing I have already try to create “Lead” record via OroAPI and it works great ! )

    My issue is specific to my own created custom entity.

    Does it work the same way ?

    Thanks.

    #28974

    Mike Kudelya
    Participant

    Hi

    Unfortunately this is not implemented yet and we have no plans about that.
    But i think you can implemented this feature in your customization.

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

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

Back to top