Create a copy of a group of entities

Hi all, 

I have this structure:

Analysis, with many risks, with many actions, example:

Analysis

Analysis IDAnalysis Name
1TestAnalysis

Risk

Risk IDRisk NameAnalysis ID RefValue
1Risk1112
2Risk2126

Action

Action IDAction NameRisk ID Ref
1Action12
2Action22

In my App I can create another new empty analysis or create a new analysis copied from one existed (like the Alalysis with ID = 1). Beyond the copy of the analysis's values, I need to copy all the related risks and all the related action of each risk. Obviously, all the IDs must be changed with the correct references.

How can I do this operation automatically? Do I need AppsScript? I use Sheet like database.

Thank you for support

Best regards

Massimo Cimetti

0 2 74
2 REPLIES 2
Top Labels in this Space