Which IIQ version are you inquiring about?
8.4
Share all details about your problem, including any error messages you may have received.
How to get the latest IdentitySnapshot of an identity in a Rule?
8.4
How to get the latest IdentitySnapshot of an identity in a Rule?
Hi @aseelvn07 ,
You can use the below code to get the latest Snapshot.
import sailpoint.object.QueryOptions;
import sailpoint.object.Filter;
import sailpoint.object.IdentitySnapshot;
import sailpoint.object.Identity;
QueryOptions qo = new QueryOptions();
String identityName = identity.getName();
Filter filter = Filter.eq("identityName", identityName);
qo.addFilter(filter);
qo.setOrderBy("created");
qo.setOrderAscending(false);
Iterator it = context.search(IdentitySnapshot.class, qo);
if(it == null) return "nulll";
while(it.hasNext()) {
IdentitySnapshot ids = it.next();
// Do Something with your IdentitySnapShot
break;
}
sailpoint.tools.Util.flushIterator(it);
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.