Hi Folks,
does anybody have code handy to fetch bundle objects querying with classifications?
thanks
Hi Folks,
does anybody have code handy to fetch bundle objects querying with classifications?
thanks
it worked with below code!
import sailpoint.object.*;
import sailpoint.api.*;
import sailpoint.tools.*;
QueryOptions qo = new QueryOptions();
//Filter.subquery("id", Bundle.class, "ownerId", Filter.eq("classifications.name", "Sample Obj Name"));
Filter mainFilter = Filter.collectionCondition("classifications",Filter.and(Filter.eq("classification.name","Sample Obj Name")));
qo.addFilter(Filter.and(mainFilter));
List bundles = context.getObjects(Bundle.class, qo);
return bundles;