replicator.replicate function: does it delete and recreate the node? | Community
Skip to main content
jayv25585659
New Participant
March 26, 2018
Solved

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

  • March 26, 2018
  • 2 replies
  • 1184 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by dylanr72808383

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.

2 replies

jayv25585659
New Participant
March 27, 2018

thanks!

dylanr72808383Accepted solution
New Participant
March 26, 2018

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.