publishing assets to Brand Portal | Community
Skip to main content
shikhasoni1
Level 3
February 21, 2022
Solved

publishing assets to Brand Portal

  • February 21, 2022
  • 2 replies
  • 1210 views

How can we publish huge number of assets to Brand Portal via backend code?

Is there any workflow OOTB step for the same?

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 Nitin_laad

How are you distinguishing those 100 assets which you do not want to publish? You can use that property/metadata in JCR:SQL2 query and filter out the assets you want to publish. 

ex: java - How to get Expiry Assets from DAM in AEM 6.3? - Stack Overflow

 

2 replies

Nitin_laad
Community Advisor
Community Advisor
February 21, 2022

@shikhasoni1 You should start asset publish at folder level such as if your DAM Assets root folder is /content/dam/demo, publish the demo folder accordingly all the assets in demo folder and its sub-folders will get published to brand portal. 

Ref: 

Publish assets to Brand Portal | Adobe Experience Manager

Migrate assets in bulk | Adobe Experience Manager

 

shikhasoni1
Level 3
February 21, 2022

ya that is fine but how through code we can achieve it? suppose i have one folder having 1000 assets, i want to publish some 900 of it only. selecting exact asset manually will be hectic.

Nitin_laad
Community Advisor
Nitin_laadCommunity AdvisorAccepted solution
Community Advisor
February 21, 2022

How are you distinguishing those 100 assets which you do not want to publish? You can use that property/metadata in JCR:SQL2 query and filter out the assets you want to publish. 

ex: java - How to get Expiry Assets from DAM in AEM 6.3? - Stack Overflow

 

Mani_kumar_
Community Advisor
Community Advisor
February 21, 2022

We can write custom service logic for replication of the assets by passing all the assets paths for this service

Use replicator API provided and replicate the asset.

Please find the below example for replicating programatically.

https://aem.redquark.org/2018/10/day-19-replication-api-in-action.html

 

Hope this is useful 🙂

shikhasoni1
Level 3
February 21, 2022

I am asking for AEM Brand Portal actually not for publisher instance.