Moving unpublished assets to a folder workflow | Community
Skip to main content
LB_PC
Level 2
July 1, 2021
Solved

Moving unpublished assets to a folder workflow

  • July 1, 2021
  • 1 reply
  • 1359 views

Hi,

 

I was hoping that someone could help I haven't created a custom workflow before but I wanted to create one that checks to see if assets is published or not and moves it to a folder if it isn't published, so it can be reviewed. I know that I can use cq:lastReplicationAction that should tell me if an asset is published or unpublished. 

 

Any help or documents would be greatly appreciated. 

 

LB_PC

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 Dipti_Chauhan

Hi @lb_pc 

 yes you can use cq:lastReplicationAction property to know replication status .

rRefer this documentation: https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/query-builder/implementing-custom-predicate-evaluator.html?lang=en

 

and for asset move you can use asset manager api’s moveAsset method

hope this helps!!

Thanks

Dipti

1 reply

Dipti_Chauhan
Community Advisor
Dipti_ChauhanCommunity AdvisorAccepted solution
Community Advisor
July 1, 2021

Hi @lb_pc 

 yes you can use cq:lastReplicationAction property to know replication status .

rRefer this documentation: https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/query-builder/implementing-custom-predicate-evaluator.html?lang=en

 

and for asset move you can use asset manager api’s moveAsset method

hope this helps!!

Thanks

Dipti

LB_PC
LB_PCAuthor
Level 2
July 2, 2021

I'm sure this method works as well but I guess I'm just not that familiar with the API.