Insert parent and child records using 1 table
Hello!
I have a table in a Ui-Only model that contains information of 2 different objects that I need to insert and which are parent and child.
Would it be possible to use a row action to create the 2 records considering that we need to retrieve the Id of the newly created parent record before inserting the child one and that the parent record might be different in each row?
Many thanks!
Jesus
I have a table in a Ui-Only model that contains information of 2 different objects that I need to insert and which are parent and child.
Would it be possible to use a row action to create the 2 records considering that we need to retrieve the Id of the newly created parent record before inserting the child one and that the parent record might be different in each row?
Many thanks!
Jesus
Tagged:
1
Categories
- 7.9K Questions
- 926 Ideas
- 220 Discussion Categories
- 178 General
- 9 Community Feedback
- 3 Community Info
- 18 Knowledge Base
Comments
The table below shows the scenario I described. The idea would be to create the Enterprise records 'Enterprise 1', 'Enterprise 2' and 'Enterprise 3' and the Year records related to each enterprise (for example 2017 and 2018 for Enterprise 1).
Since we have multiple parents in the same table, I wondered how to retrieve the right Id to use it when creating the child records.
Thanks!