Contentful logo

Contentful Community

Duplicate Entry and all Child Entries

Hi,

I’m looking to build an extension that will “Duplicate” all, that is at that level, duplicate that entry, but also duplicate all child entries, but have it keep the links.

I haven’t seen anything like that anywhere. I’ve recreated the duplicate button already using the create entry with the fields of the top level, but am struggling a bit to figure out how to recursively walk through each linked object, blow that out, and duplicate those all, while relinking the duplicated children to the duplicated parent, at least in a recursive manner

Victor

2 Likes

Hello @victor.yang,

Hope you are doing well.

Were you able to find a solution for your problem, if yes can you provide few pointers. I am also looking into a similar problem. Any kind of help is appreciated.

Regards,
Tushar