Organize users by state in Smart List

Recipe ToolsDatabaseUtilities

What it does

When a scheduled trigger fires, this automation retrieves all users from a lookup table and organizes them by state. Someone can then query the Smart List to find users based on their location.

Who it's for

Operations teams who need to segment users by state for reporting or outreach without manual sorting.

How teams use this

Segment users for regional campaigns

Retrieve users grouped by state so marketing can target campaigns to specific regions. The lookup runs on schedule and the list stays current without manual updates.

Filter users in restricted states

Organize users by state and check that records meet regional data residency or privacy rules. Add a condition to flag users in restricted locations for compliance review.

Route support tickets by region

Use the state-organized Smart List to assign customer support tickets to regional teams. Set team assignments for each state so tickets route automatically.

How it works

  1. Run on a set schedule. The automation starts at a specified time to retrieve and organize users by their state from the lookup table.
  2. Retrieve all users from lookup table. Fetch every user record stored in the Lookup Table so the automation can process and organize each one by state.
  3. Build a state-organized Smart List. Loop through each user and add them to the Smart List grouped by state so queries can filter users by their location.
  4. Return the organized result. Send back the structured list of users organized by state so it can be used in other workflows or reports.