Skip to main content
New Participant
July 19, 2022

How to verify programmatically an asset has been published to Brand Portal

  • July 19, 2022
  • 2 replies
  • 1077 views

Hello,

 

We are using AEMaaCS Author. Is there a way to programmatically check/verify if an asset has already been published to Brand Portal from Author instance? I wasn't able to find a metadata property on the asset node that confirms that. There is dam:portalReplicationAction which same asset have set to "ActivateQueued" but I don't see it on all assets that have been published to our Brand Portal.

 

Before a process of moving an asset we need to verify if it is already on the Brand Portal and if so republish it after the move.

 

Can you please help with finding a way to determine that?

 

Thank you!

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

2 replies

Employee
July 20, 2022

Hello ,

There is separate property on asset jcr content node telling published to media portal. Please check that.

 

Thanks

Anika

bmavrovAuthor
New Participant
July 20, 2022

Hi Anika,

 

What is the property in question? Thank you!

Himanshu_Jain
New Participant
July 20, 2022

You can use query to get the list of all the assets from your folder where dam:portalReplicationAction property is set .

Himanshu Jain
bmavrovAuthor
New Participant
July 20, 2022

Hi Himanshu,

 

I saw assets which were already on the brand portal but did not have dam:portalReplicationAction set. That's what's giving me trouble.

 

Thanks!