How to make a copy or duplicate a related list of reference items to another parent data object?

Hello,  Here is some background so you can clearly understand the ask:

My app has an action to create a duplicate project, and it open a new form and allows the user to edit the new project details, such as the name and location, and save it. So essentially it's just transferring the same information into a new row in the Projects database table with a new Project #.

ProProjects_1-1701394498604.png

A project also has a Ref list of Scope of Work, which has its own status and description saved in it's own table. However, I would like this to "copy" over as well. But I realize it must create a copy set of unique scope of works in the table, that somehow must Reference/Relates to the the new project # as well.

ProProjects_0-1701394468331.png

I have figured out how to make an action 1) to first Select the Scope of Work related to the original project. 

ProProjects_2-1701394827513.png

2) A Referenced Action to Copy the content of each Scope of Work BUT the missing link is How do I get and set the new Project #

ProProjects_3-1701394952608.png

Maybe a bot that works after an Add Only update for a new Project that has a value in a new column called "Copied From" and if that exists, then to somehow select the scope of work from the original project # and runs a sequence of actions to create copies?... Brainstorming

Thank you in advanced for lending your brain power and expertise.

0 1 425
1 REPLY 1
Top Labels in this Space