Expand my Community achievements bar.

SOLVED

Moving unpublished assets to a folder workflow

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/impl...

 

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

hope this helps!!

Thanks

Dipti

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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/impl...

 

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

hope this helps!!

Thanks

Dipti

Avatar

Level 2

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

Avatar

Level 2
Hey Dipti, I'm more looking for a workflow that I can run every now and again I saw that there use to be a Move assets workflow tutorial but it's now showing a 404.

Avatar

Community Advisor
HI @LB_PC i dont think there is any OOTB workflow for move assets. You need to write custom process for this