Forums

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

This topic contains 1 reply, has 2 voices, and was last updated by Mike Kudelya Mike Kudelya 10 months ago.

  • Creator
    Topic
  • #29998

    vincent1
    Participant

    We have to integrate with a crappy old system that holds all our contacts. We’re given a unique ID and we use that ID to fetch information from an external API. So, our database has only two ids: the autoincrement internal ID and the external ID from this old system. Is it possible to create virtual entity fields that map to this API? I was thinking about creating a cache layer and magic methods on the entity (__get) so i can request data when needed, store on the cache. However, i’m not sure if the datagrids would be able to work with magic methods. Is this possible?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #30404
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi

    For now datagrid is working with concrete entity fields. If freshness of data is not necessary i suggest you:

    1. Create new entity on orocrm side or use existing Contact entity.
    2. Create bridge between old system and orocrm.
    3. During the day synchronise through api calls.

    In other hand you can create your own datasource and get data from cache or other place. Here is ORM datasource which we are using in many datagrids.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

ssossossosso