AEM GraphQL : Get the published content fragments only in author instance? | Adobe Higher Education
Skip to main content
Level 4
November 28, 2022
解決済み

AEM GraphQL : Get the published content fragments only in author instance?

  • November 28, 2022
  • 2 の返信
  • 824 ビュー

Is there any filter to get content fragment metadata with a field of isPublished as boolean? Or is there any other API like querybuilder or replication API to get the status?

 

I see https://BASEURL/bin/replicate.json can be used to set the status however I am interested to get the status of a given content fragment.

このトピックへの返信は締め切られました。
ベストアンサー arunpatidar

Hi,

You can use query builder api to do that.

 

path=/content/dam/aemlab/oneweb/cf
type=dam:Asset
1_property=jcr:content/contentFragment
1_property.value=true
2_property=jcr:content/cq:lastReplicationAction
2_property.value=Activate
p.hits=selective
p.properties=jcr:path
p.limit=-1

 

Corresponding API for above query

http://localhost:14502/bin/querybuilder.json?1_property=jcr%3acontent%2fcontentFragment&1_property.value=true&2_property=jcr%3acontent%2fcq%3alastReplicationAction&2_property.value=Activate&p.hits=selective%20&p.limit=-1&p.properties=jcr%3apath&path=%2fcontent%2fdam%2faemlab%2foneweb%2fcf&type=dam%3aAsset  

2 の返信

Community Advisor
November 28, 2022

Hi ,

Hi,

 

Content fragment supported api 

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/assets-api-content-fragments/index.html#/

 

But there is no specific api for getting replication status.

 

Thanks

arunpatidar
Community Advisor
Community Advisor
November 28, 2022

Hi,

You can use query builder api to do that.

 

path=/content/dam/aemlab/oneweb/cf
type=dam:Asset
1_property=jcr:content/contentFragment
1_property.value=true
2_property=jcr:content/cq:lastReplicationAction
2_property.value=Activate
p.hits=selective
p.properties=jcr:path
p.limit=-1

 

Corresponding API for above query

http://localhost:14502/bin/querybuilder.json?1_property=jcr%3acontent%2fcontentFragment&1_property.value=true&2_property=jcr%3acontent%2fcq%3alastReplicationAction&2_property.value=Activate&p.hits=selective%20&p.limit=-1&p.properties=jcr%3apath&path=%2fcontent%2fdam%2faemlab%2foneweb%2fcf&type=dam%3aAsset  

Arun Patidar