Version 8.4
I would like your help on how to retrieve the Link data. In my case, it is the Person ID. The rule runs after I click to disable the account, but I’m not sure how to get the data from the Link with a filter.
Please help. Thank you all!
I would like your help on how to retrieve the Link data. In my case, it is the Person ID. The rule runs after I click to disable the account, but I’m not sure how to get the data from the Link with a filter.
Please help. Thank you all!
You can use code like below example. Update your application name and identity filter.
QueryOptions qo = new QueryOptions();
List andFilter= new ArrayList();
Filter.add(Filter.eq("application.name",appName));
Filter.like("nativeIdentity", "CN=" + wantedCN, Filter.MatchMode.START);
qo.addFilter(Filter.and(andFilter));
Iterator itx = context.search(Link.class, qo);
For your case, the same code will become like below.
QueryOptions qo = new QueryOptions();
List andFilter= new ArrayList();
Filter.add(Filter.eq("application.name",<yourappName>));
Filter.like("PersonID", “P001“, Filter.MatchMode.START);
qo.addFilter(Filter.and(andFilter));
Iterator itx = context.search(Link.class, qo);
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.