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

Publish all files under a given DAM path Programatically

manishkj
Level 1
Level 1

Hi,

I have a requirement wherein I have a DAM path and need to publish all the files under the given DAM. Is there a programatic way of publishing all files under a given DAM path in one go like activation tree?

Thanks,

Manish

1 Accepted Solution
zeeshanKhan0786
Correct answer by
Level 5
Level 5

Hi manish,

For replicating all asset you have to iterate through the child of given path using node api and get path of all child then use Replicator API to replicate the asset like below.

replicator.replicate(session, ReplicationActionType.ACTIVATE, asset.getPath());.

You can use recursive call to get the child of child path.

View solution in original post

1 Reply
zeeshanKhan0786
Correct answer by
Level 5
Level 5

Hi manish,

For replicating all asset you have to iterate through the child of given path using node api and get path of all child then use Replicator API to replicate the asset like below.

replicator.replicate(session, ReplicationActionType.ACTIVATE, asset.getPath());.

You can use recursive call to get the child of child path.

View solution in original post