Filter Content Fragments based on published status | Adobe Higher Education
Skip to main content
Level 3
August 23, 2023
해결됨

Filter Content Fragments based on published status

  • August 23, 2023
  • 2 답변들
  • 834 조회

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.

이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

iamnjain
Community Advisor
iamnjainCommunity Advisor답변
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