Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
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...  

0 Replies

Avatar

Level 4

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