different behaviour when creating new entity via UI and REST API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dirk.dinger
    Junior Member
    • Nov 2018
    • 17

    different behaviour when creating new entity via UI and REST API

    Hello espo customizing experts,

    I have created a custom entity that has a n:n relation to another custom entity. I also configured the detail page UI to show the relations via Layout Manager.
    If I create a new instance via the browser UI, I can see the corresponding panel for the relation that allows me to list the related instances link a new one. so fine so good.

    Since I must migrate my existing data to this new entity, I have a script that uses the REST API and creates the instances via POST requests.

    The objects get created with no error and I see them in the espo search view. I can open a single entry in the edit mode. BUT: the edit view does not show the container
    for the n:n relation and I am not able to bring it up. Even if I make some changes and save them via the browser. The Panel for the relation is not shown.
    What might be the problem ?

    Any help appreciated,
    Dirk
Working...