Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

how to get list of filters of a package through code?

Avatar

Level 2

Hi,

I am trying to find a particular package using its name and want to get the list of filters which the package is containing.

Could anyone please suggest me how to get the package using name/id and get its filter list using the api?

Thanks in Advance!

4 Replies

Avatar

Level 10

Not sure the API supports this. The AEM API related to packages is package manager API.

Avatar

Level 7

Hi krish747​,

do you need to use java api? Why do you need this info? If you need this in order to make export, you can also use cURL commands which contains method to retrive a package and its filters.

Avatar

Level 2

Hi @antoniom54959291,

Actually I need this info as I have to perform some actions using Servlet on the paths (pages) which are included in the filter for the given package name/id.

It will be helpful if you can post me the Curl command to get the list of filter values. If no options left on the API side, i will try to use Curl. The only thing bothers bothers in Curl is that we have to update the credentials and domains for URL for every environment.