Publish all files under a given DAM path Programatically | Community
Skip to main content
manishkj
July 15, 2017
Solved

Publish all files under a given DAM path Programatically

  • July 15, 2017
  • 1 reply
  • 962 views

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

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 zeeshanKhan0786

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.

1 reply

zeeshanKhan0786
zeeshanKhan0786Accepted solution
July 15, 2017

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.