...
On the navbar, expand Role Management and select Query-Based Collections (SetGroups).
Select the Actions tab and then click Create Query (Set).
Enter the following information in the General section of the Set Details form:
Query (Set) Type — – Select SQL Query
Name — – Name of the Set
Display Name — – Display Name of the Set
Description — – Description of the Set
Is a collection of people — – Select is if the query returns people
Object Type — – Select the object type. For example, if the Set returns people, select EmpowerID Person.
In the Filter section of the Set Details form, in the SQL Query field, enter a SQL query that returns the desired objects. In this example, the Set returns all people hired within the last five days. Queries must begin by returning the GUID and FriendlyName of the objects or they will fail when compiled.
Code Block language sql Select PersonGUID, FriendlyName FROM Person (NOLOCK) WHERE CreatedDate BETWEEN DATEADD(day,-5, GETUTCDATE()) AND GETUTCDATE();
Select Is Enabled to enable EmpowerID to compile the Set (selected by default).
Click the Schedule Interval drop-down and set the schedule for when and how often the Set compiles. In this example, the Set compiles once every day at 8 am. To do this:
Set the Start and End dates
Set the Interval to Daily
Set the Iterations to 1
Set the Times (compilation time) to 8:00 am
Select Do Not Allow Delete if you want to prevent users from deleting the Set in the EmpowerID interface.
Select Create Matching Set Group if you want EmpowerID to create a Set Group (Query Based Collection) when the Set is created (recommended).
Click Save.
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|