duplicating portal records and their related children and grandchildren
I have been at this issue since a couple of months now and got close to the solution I need (in large parts also thanks to some great threads on this forum). However, I am really stuck on the last little bit now and would love to see if anyone can help me out.
I have 3 databases, breakdown (BD), effect (EFF) and build (BLD).
BD has multiple related entries in EFF, and EFF has multiple related entries in BLD.
What i want to do is to duplicate an entry in BD together with its childs in EFF and grandchilds in BLD.
I have the scripting figured out to duplicate entries in BD with just the related childs in EFF.
I also have the same to duplicate entries in EFF with the related childs in BLD.
What I now need is to combine the 2 actions so I can duplicate an entry in BD and duplicate all the related entries in EFF with their related entries in BLD.
I uploaded the files with the scripts on below public link:
Really appreciate any help you could give me on this. I tried combining the scripts but I cant get it to work, it either doesnt do anything or infinitely creates duplicates and gets stuck in the loop :(