The resulting record set of a query (either an LDAP or database query) can be assigned to a variable so that you can refer to it when creating actions.