Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In the navigation sidebar, expand Identities and click Query-Based Collections (SetGroups).
  2. From the Set Groups management page, click the Actions tab and then click Create Query (Set).



  3. In the General section of the Set Details form that appears, select SQL Query from the Query (Set) Type field. This enables you to write a SQL query in the form.
  4. Enter a name, display name and description for the Set in the Name, Display Name and Description fields, respectively.
  5. Select whether the query returns a collection of people.
  6. Click the Object Type drop-down and select one the appropriate object type for the query. For example, if the Set is to return a list of people, select EmpowerID Person.



  7. 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.

    Code Block
    languagesql
    Select PersonGUID, FriendlyName FROM Person (NOLOCK) WHERE CreatedDate BETWEEN DATEADD(day,-5GETUTCDATE5, GETUTCDATE()) AND GETUTCDATE(); 


    Tip

    Clicking Choose opens a dialog of SQL Query templates that you can use as a starting point for your query.


    Info

    Queries must begin by returning the GUID and FriendlyName of the objects or they will fail when compiled.


  8. Select Is Enabled to enable EmpowerID to compile the Set (selected by default).
  9. 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



  10. Select Do Not Allow Delete if you want to prevent users from deleting the Set in the Web interface.
  11. Select Create Matching Set Group if you want EmpowerID to create a Set Group (Query Based Collection) when the Set is created.

    Image Modified

  12. Click Save.