Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

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

Avatar

Level 5

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.v...  



Arun Patidar

View solution in original post

2 Replies

Avatar

Community Advisor

Hi ,

Hi,

 

Content fragment supported api 

 

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

 

But there is no specific api for getting replication status.

 

Thanks

Avatar

Correct answer by
Community Advisor

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.v...  



Arun Patidar