Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

replicator.replicate function: does it delete and recreate the node?

Avatar

Level 7

So I have this code

replicator.replicate(jcrSession, activateType, path);

and it replicates contents/node (primaryType = cq:Page) from author to publisher.

My question is in relation to an existing node:

Does this function deletes the existing publisher node and recreates it? Or does it just updates the existing node?

I've looked at the reference manual and there's not details there on what's happening.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 2

It will not delete the node and create a new one. If it already exists, then the content is updated and a new version is created.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 2

It will not delete the node and create a new one. If it already exists, then the content is updated and a new version is created.