AnsweredAssumed Answered

duplicating portal records and their related children and grandchildren

Question asked by kayG on May 25, 2012
Latest reply on Jul 16, 2012 by GuyStevens

Title

duplicating portal records and their related children and grandchildren

Post

Hi All,

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:

https://www.dropbox.com/sh/q47spjl6r1ay1ww/Ij1vuKBAfr

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 :(

cheers, K.

Outcomes