Hey Vinodhini,
I assume that you have created an association between two entities, which you are creating
If not, can you show me the domain model and how you are calling the microflow from the page,
What I can think is, there is a dataview of entity1 and inside them you are creating the dataviews of entity 2,
if it is the case, then from the save button, you can call a microflow, which commits the whole list.
Hope it helps!