Hi,
I have created a form with two fields where in first field we get application name and in second field we get the list of accounts present in that Application.
I want to display only accounts in the second field which have a manager assigned and accounts last name is NPIdentity. I have created both the filters but not sure if I can add two allowed values attribute. And when merging both its not working. Below are both the codes.
Hi @Arun-Kumar
result is the same.
Okay can something like in this code I get.
import sailpoint.object.*;
List identityList = new ArrayList();
QueryOptions qp = new QueryOptions();
qp.addFilter(Filter.eq("lastname","NPIdentity"));
Iterator it = context.search(Identity.class,qp);
while ( it.hasNext() ) {
Identity identity = (Identity)it.next();
//if(null != identity){
if(null != identity && identity.getManager() != null) {
identityList.add(identity.getAttribute("workerid"));
}
}
return identityList;
here we are getting All the identities which are in sailpoint with lastname as NPIdentity.
Can it just be editied in a way so that instead of showing all the identities it shows only those identities present in the Application selected above.
Actually I am getting all the accounts under that Application. the lastname filter of the code is not working somehow I suppose because when I am using above codes which I mentioned, they are working individually but not together.
I have checked and verified the identites also.
Also when I write the worker ID in “Select Account” field I am not able to search the account.