Filter Content Fragments based on published status | Community
Skip to main content
Level 3
August 23, 2023
Solved

Filter Content Fragments based on published status

  • August 23, 2023
  • 2 replies
  • 834 views

Is there a way to achieve the below in GraphQL persisted queries:

1. Add a timestamp in the response of GraphQL persisted query based on the last published date and time of a CF. Rather than manually entering the field value, I want that to be picked automatically

2. Filter Content Fragments which gets published between a past time frame and the current timeframe.

Eg: Receiving a time frame as a parameter in query and filter all the CFs which gets published between the time frame received and the current time.

Please help.

Thanks.

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 iamnjain

Hi @rakesh_h2 

 

I believe AEM GraphQL don't have this feature yet which can access Publish Timestamp from CRX node. It might come in future releases.

 

Hope this helps!

2 replies

iamnjain
Community Advisor
iamnjainCommunity AdvisorAccepted solution
Community Advisor
August 24, 2023

Hi @rakesh_h2 

 

I believe AEM GraphQL don't have this feature yet which can access Publish Timestamp from CRX node. It might come in future releases.

 

Hope this helps!

ShaileshBassi
Community Advisor
Community Advisor
August 28, 2023

Hi @rakesh_h2  There is no OOTB way to cater this request, but you can make this work with the help of the custom implementation.

Steps:

1. Create a launcher to trigger a workflow to copy the published date at the time of publishing to copy the published date to a field within the CF.

2. Now create the query based on the copied field.

 

Hope this helps!

Thanks