# Triggers and Conditions to Automate Device Management Workflows

**Quick Summary:**

Hexnode UEM Automations operate on a logical “If-Then” framework:
 **[Trigger] + [Target Filter] = [Action Execution]**.

- **Trigger:** The specific event (Time or Activity) that initiates the automation process.
- **Target Filter:** The Boolean conditions (Device, User, or Network attributes) that must be met for the action to deploy.

Steps to Configure Triggers and Conditions
------------------------------------------

1. Navigate to **Automate > Active Automations > New Automation**.
2. Select the target **Platform** and define the **Action** (e.g., Lock Device, Install App).
3. Proceed to the **Settings and Schedule** page to define your Triggers.
4. Proceed to **Target Filters** to define the scope of the automation.
5. **Review** the summary and click **Save**.

Phase 1: Defining the Trigger
-----------------------------

The Trigger determines *when* the automation engine begins evaluating your fleet.

Type A: Time-Based Triggers (Scheduled Events)Time triggers execute actions based on a clock-driven schedule:

- **Once, ASAP:** Triggers immediately upon saving the automation.
- **Once:** Triggers at a precise future timestamp (MM/DD/YY | HH:MM).
- **Repeat:** Triggers on a recurring cadence (Everyday, Weekly, or Monthly).

 [![Screenshot of Hexnode UEM dashboard showing time-based triggers and conditions to automate device management under the Automate tab.](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2025/06/Time-based-triggers-and-conditions-to-automate-device-management.png)](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2025/06/Time-based-triggers-and-conditions-to-automate-device-management.png "Time-based triggers and conditions to automate device management ")

Type B: Activity-Based Triggers (Behavioral Events)Activity triggers respond to real-time changes in device state:

- **Enrollment:** Executes when a device first checks into the portal.
- **SIM Activity (Android Only):** Insertion, removal, or switching of SIM cards.
- **Compliance Status:** Triggered by changes in device-level or location-based compliance.
- **Inactivity (Android Only):** Triggered when a device remains offline past a specified threshold.

 [![Screenshot of Hexnode UEM dashboard showing activity-based triggers and conditions to automate device management under the Automate tab.](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2025/06/Activity-based-triggers-and-conditions-to-automate-device-management.png)](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2025/06/Activity-based-triggers-and-conditions-to-automate-device-management.png "Activity-based triggers and conditions to automate device management ")

Phase 2: Applying Target Filters
--------------------------------

Target Filters refine the scope of the trigger. An action only executes if the device matches the filter criteria at the time of the trigger.

 CategoryFilterable Attributes (Sub-categories)**Device**Apple ADE, Asset Tag, Battery Level, Device Model, Serial Number, OS Version, Ownership, Supervision Status.**User**Email, Department, Office Location, Username.**Network**Wi-Fi SSID, IP Address, ICCID, Roaming Enabled, Home Carrier, MCC/MNC, Personal Hotspot.**Device Status**Rooted/Jailbroken, Lost Mode, Kiosk Status, Enrollment Status, Compliance Status, Activity Status.