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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile
jayv25585659
Level 4

25-03-2018

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!

View Entire Topic

Avatar

Avatar
Validate 1
Level 2
dylanr72808383
Level 2

Likes

3 likes

Total Posts

18 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 2
dylanr72808383
Level 2

Likes

3 likes

Total Posts

18 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
dylanr72808383
Level 2

26-03-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.