Skip to main content

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

It’s possible for sure using javascript. Might even be able to do it using only action framework. Your scenario needs more explanation though.


My preference would be to use only action framework if possible.


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!


So Enterprise__c is the parent record for Year__c? If yes, then for sure javascript.


Reply