/fabric-data-activator:Fabric-Data-Activatorfrom fabric-data-activator
Creates Reflex items with tracked objects and properties, defines trigger conditions (threshold, state change, absence, trend), and configures actions (email, Teams, Power Automate, webhook) for event-driven automation on real-time Microsoft Fabric data.
Ships in fabric-data-activator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Microsoft Fabric Data Activator is a no-code experience for taking automated actions when conditions are detected in changing data. It monitors data from Fabric eventstreams, Power BI reports, and other Fabric data sources, then triggers actions such as emails, Teams messages, Power Automate flows, or custom webhooks when specified conditions are met.
Core concepts:
| Concept | Description |
|---|---|
| Reflex item | The container artifact in a Fabric workspace that holds objects, triggers, and actions |
| Object | A real-world entity being tracked (e.g., Machine, Order, Patient, Sensor) |
| Property | A data attribute of an object (e.g., temperature, status, totalAmount) |
| Trigger | A condition evaluated against object properties that fires when met |
| Action | The response executed when a trigger fires (email, Teams, flow, webhook) |
How Data Activator relates to the Fabric ecosystem:
When to use Data Activator vs alternatives:
| Scenario | Use |
|---|---|
| Alert when a real-time metric crosses a threshold | Data Activator |
| Alert when a KPI in a Power BI report changes | Data Activator |
| Run a complex multi-step business process on data change | Power Automate (triggered by Data Activator) |
| Batch ETL with conditional logic | Fabric Data Pipeline |
| Stream processing with transformations | Fabric Eventstream + KQL |
| Static threshold on a single Power BI tile | Power BI native alerts (simpler but limited) |
Data Activator is ideal when you need to monitor multiple objects (e.g., hundreds of machines) with per-object state tracking, rather than a single global metric.
A Reflex item is the top-level artifact in a Fabric workspace that organizes everything related to a Data Activator monitoring scenario.
Create a Reflex item:
Factory-Temperature-Monitor, Sales-KPI-Alerts).Reflex item structure:
Reflex Item: Factory-Temperature-Monitor
├── Data sources
│ ├── Eventstream: iot-sensor-stream
│ └── Power BI: Sales Dashboard / Revenue Chart
├── Objects
│ ├── Machine
│ │ ├── Properties: temperature, pressure, status
│ │ └── Key column: machineId
│ └── ProductionLine
│ ├── Properties: throughput, defectRate
│ └── Key column: lineId
└── Triggers
├── High Temperature Alert
│ ├── Condition: Machine.temperature > 85
│ └── Action: Email to [email protected]
└── Low Throughput Warning
├── Condition: ProductionLine.throughput < 100 for 10 minutes
└── Action: Teams message to #factory-alerts
Data sources for Reflex items:
| Source | How to connect | Data delivery |
|---|---|---|
| Eventstream | Select an existing eventstream in the workspace | Real-time (seconds) |
| Power BI visual | Right-click a visual > "Set alert" | Near real-time (refresh-dependent) |
| Fabric OneLake data | Route through an eventstream | Real-time or scheduled |
| Custom app | Send events to an eventstream via REST API | Real-time |
Data preview: After connecting a data source, the Reflex item shows a data preview pane where you can inspect incoming events, verify column names and types, and confirm data is flowing before defining objects.
Naming conventions:
Machine, SalesOrder, PatientVitaltemperature, orderTotal, heartRatefactory-monitor, sales-kpi-alertsWorkspace organization: Group related Reflex items in the same workspace as their data sources. A Reflex item can reference eventstreams and Power BI reports only within the same workspace or workspaces the user has access to.
Objects represent the real-world entities that Data Activator tracks. Each object instance is identified by a key column, and its state is described by properties mapped from incoming data columns.
Define a tracked object:
Machine).machineId).Key column requirements:
deviceId, orderId, customerId, sensorId.machineId has 50 distinct values, Data Activator tracks 50 Machine objects independently.Property types:
| Type | Source column examples | Operators available |
|---|---|---|
| Numeric | temperature, pressure, amount, count | >, <, >=, <=, ==, !=, between |
| String | status, category, region, errorCode | equals, not equals, contains, starts with, ends with |
| Boolean | isActive, isOverdue, hasError | is true, is false, changes to true, changes to false |
| DateTime | lastUpdated, createdAt, expiresOn | before, after, older than |
Property mapping example:
Data source columns: Object: Machine
───────────────────── ─────────────────
machineId ──────► Key column: machineId
sensorTemperature ──────► Property: temperature (Numeric)
sensorPressure ──────► Property: pressure (Numeric)
machineStatus ──────► Property: status (String)
lastHeartbeat ──────► Property: lastHeartbeat (DateTime)
Derived properties: In addition to direct column mappings, you can create derived properties using expressions:
temperature - baselineTemp).Multiple data sources per object: An object can receive properties from multiple data sources. For example, a Machine object could get temperature from an IoT eventstream and maintenanceStatus from a Power BI dataset. All properties are correlated by the key column.
Sample values: After mapping properties, the design pane shows sample values for each property across recent object instances. Use this to verify:
Triggers define the conditions under which Data Activator takes action. Each trigger belongs to an object and evaluates conditions against that object's properties. Triggers are evaluated independently for each object instance.
Create a trigger:
Machine).High Temperature Alert).Condition types:
| Condition type | Description | Example |
|---|---|---|
| Value comparison | Property compared to a static or dynamic threshold | temperature > 85 |
| Value change | Property value changes (any change or to a specific value) | status changes to "Error" |
| Becomes true | A boolean expression transitions from false to true | temperature > 85 becomes true |
| Remains true | Condition stays true for a specified duration | temperature > 85 for 10 minutes |
| Absence | No data received for a specified duration | No events for 5 minutes |
Comparison operators:
| Operator | Applies to | Description |
|---|---|---|
> | Numeric | Greater than |
< | Numeric | Less than |
>= | Numeric | Greater than or equal |
<= | Numeric | Less than or equal |
== | Numeric, String | Equal to |
!= | Numeric, String | Not equal to |
between | Numeric | Within a range (inclusive) |
equals | String | Exact string match |
contains | String | Substring match |
starts with | String | Prefix match |
ends with | String | Suffix match |
Compound conditions: Combine multiple conditions with logical operators:
temperature > 85 AND pressure > 200 (both must be true for the same Machine instance).Duration conditions ("remains true for"):
Debounce and cooldown:
Trigger state machine: Each trigger, per object instance, follows this lifecycle:
┌──────────────┐
│ Inactive │ (trigger stopped or not started)
└──────┬───────┘
│ Start trigger
▼
┌──────────────┐
┌──────►│ Monitoring │◄──────────────────────────────┐
│ └──────┬───────┘ │
│ │ Condition becomes true │
│ ▼ │
│ ┌──────────────┐ │
│ │ Evaluating │ (for "remains true" triggers) │
│ └──────┬───────┘ │
│ │ Duration elapsed │
│ ▼ │
│ ┌──────────────┐ │
│ │ Fired │───────► Execute action(s) │
│ └──────┬───────┘ │
│ │ Cooldown elapsed │
└──────────────┘ │
OR condition becomes false ────────────────────┘
Testing triggers: Before starting a trigger in production:
Actions define what happens when a trigger fires. Each trigger can have one or more actions that execute simultaneously.
Action types:
| Action type | Description | Configuration required |
|---|---|---|
| Send an email notification | Recipient email address(es), subject, body | |
| Teams message | Post a message to a Teams channel or chat | Team/channel selection or user |
| Power Automate flow | Invoke a cloud flow with trigger context | Flow URL and input parameters |
| Custom webhook | Send an HTTP POST to an external endpoint | Webhook URL (HTTPS) and payload template |
Email action configuration:
Alert: {MachineName} temperature is {temperature}).{ObjectName}, {PropertyName}, {PropertyValue}, {TriggerName}, {TriggerTime}, {WorkspaceName}, and any object property by name.Teams message action configuration:
Power Automate flow action:
Custom webhook action:
Webhook payload structure:
{
"triggerName": "High Temperature Alert",
"triggerTime": "2025-03-15T14:30:00Z",
"objectType": "Machine",
"objectKey": "MCH-042",
"properties": {
"temperature": 92.5,
"pressure": 210,
"status": "Warning"
},
"workspaceName": "Factory-Monitoring",
"reflexItemName": "Temperature-Monitor"
}
Action throttling:
Recipient configuration:
assignedEngineer property contains the email of the responsible person). The action is sent to different recipients per object instance.Data Activator integrates directly with Power BI, allowing users to create alerts on visual data without writing code or configuring eventstreams.
Set alert from a Power BI visual:
... menu.How visual-to-Reflex data binding works:
Region on the axis creates a Region object).Revenue, UnitsSold).Measure-based triggers:
Revenue < 50000 for any Region object fires an alert.Supported visual types for alerting:
| Visual type | Key column candidates | Measure candidates |
|---|---|---|
| Bar/Column chart | Axis categories | Bar values |
| Line chart | Legend or axis categories | Line values |
| Table/Matrix | Any column | Numeric columns |
| Card/KPI | None (single value) | The displayed value |
| Map | Location fields | Size/color values |
| Pie/Donut | Slices | Slice values |
No-code alert creation flow:
Power BI Visual ──► "Set alert" ──► Data Activator opens
│
Select object key column (e.g., Region)
│
Select measure to monitor (e.g., Revenue)
│
Define condition (e.g., Revenue < 50000)
│
Configure action (email / Teams)
│
Start trigger ──► Monitoring active
Limitations of Power BI integration:
Eventstreams provide the real-time data backbone for Data Activator. When sub-second or second-level alerting is required, eventstreams are the preferred data source.
Eventstream as a data source:
Real-time processing pipeline:
Source (IoT Hub / Event Hub / Custom App)
│
▼
Eventstream (ingestion + optional transformation)
│
├──► Lakehouse (persist for analytics)
│
└──► Reflex item (Data Activator monitoring)
│
├──► Object: Machine (key: machineId)
│ ├── Property: temperature
│ ├── Property: pressure
│ └── Trigger: High Temperature Alert
│
└──► Object: ProductionLine (key: lineId)
├── Property: throughput
└── Trigger: Low Throughput Warning
Filtering before Reflex: Use eventstream transformations to filter events before they reach Data Activator:
Windowed aggregations: Eventstreams support tumbling, hopping, and sliding windows:
Routing events to objects: When an eventstream carries events for multiple object types (e.g., temperature readings and status changes), use eventstream routing:
Event schema example (JSON events from IoT Hub):
{
"machineId": "MCH-042",
"temperature": 87.3,
"pressure": 195,
"status": "Running",
"timestamp": "2025-03-15T14:30:05Z"
}
This schema maps directly to a Machine object with machineId as the key and temperature, pressure, status as properties.
Common trigger patterns for different monitoring scenarios.
Pattern 1: Threshold alert — Fire when a numeric value exceeds a limit.
machineId).temperature > 85.[email protected].Pattern 2: Anomaly detection (deviation from baseline) — Fire when a value deviates significantly from its historical norm.
serverId).currentTraffic - avgTraffic(30min) > 500 (derived property > 500).#network-ops + Power Automate flow to create an incident.Pattern 3: State change alert — Fire when an object transitions between states.
orderId).status changes to "Cancelled".salesRep (dynamic recipient from object property).Pattern 4: Absence detection — Fire when expected data stops arriving.
sensorId).No events received for 5 minutes.[email protected] + webhook to monitoring dashboard.Pattern 5: Trend alert (sustained increase/decrease) — Fire when a value trends in one direction over time.
vmId).cpuSlope30min > 0.5 (CPU increasing by more than 0.5% per minute sustained).Pattern selection guide:
| Scenario | Pattern | Key configuration |
|---|---|---|
| Single metric exceeds a limit | Threshold | Static comparison + cooldown |
| Metric deviates from norm | Anomaly detection | Derived property (current - average) |
| Categorical value changes | State change | "changes to" condition |
| Data stops flowing | Absence | "no events for" condition |
| Gradual drift over time | Trend | Derived property (slope/rate of change) |
The Fabric REST API provides programmatic access to manage Reflex items, objects, triggers, and actions. This enables infrastructure-as-code and CI/CD workflows for Data Activator configurations.
Base URL: https://api.fabric.microsoft.com/v1
Authentication: Use Azure AD bearer tokens with the https://api.fabric.microsoft.com/.default scope.
# Acquire a token using Azure CLI
az account get-access-token --resource https://api.fabric.microsoft.com --query accessToken -o tsv
Reflex item CRUD:
| Operation | Method | Endpoint |
|---|---|---|
| List Reflex items | GET | /workspaces/{workspaceId}/reflexes |
| Get Reflex item | GET | /workspaces/{workspaceId}/reflexes/{reflexId} |
| Create Reflex item | POST | /workspaces/{workspaceId}/reflexes |
| Update Reflex item | PATCH | /workspaces/{workspaceId}/reflexes/{reflexId} |
| Delete Reflex item | DELETE | /workspaces/{workspaceId}/reflexes/{reflexId} |
Create a Reflex item:
curl -X POST "https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/reflexes" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Factory-Temperature-Monitor",
"description": "Monitors factory machine temperatures and alerts on thresholds"
}'
Trigger management via API:
| Operation | Method | Endpoint |
|---|---|---|
| List triggers | GET | /workspaces/{workspaceId}/reflexes/{reflexId}/triggers |
| Start a trigger | POST | /workspaces/{workspaceId}/reflexes/{reflexId}/triggers/{triggerId}/start |
| Stop a trigger | POST | /workspaces/{workspaceId}/reflexes/{reflexId}/triggers/{triggerId}/stop |
Programmatic configuration: Use the API to:
Data Activator security is governed by Fabric workspace roles, data access controls, and action recipient permissions.
Workspace roles and capabilities:
| Role | Can view Reflex | Can create/edit triggers | Can start/stop triggers | Can delete Reflex |
|---|---|---|---|---|
| Viewer | Yes | No | No | No |
| Contributor | Yes | Yes | Yes | No |
| Member | Yes | Yes | Yes | No |
| Admin | Yes | Yes | Yes | Yes |
Data access: Triggers evaluate data using the permissions of the Reflex item owner. If the owner loses access to the underlying data source, triggers stop working. Best practice: use a service principal or shared service account as the Reflex owner for production scenarios.
Action recipient permissions:
Audit and compliance:
Data Activator provides built-in tools to monitor trigger health, investigate issues, and debug unexpected behavior.
Trigger history: Each trigger maintains a history of:
Accessing trigger history:
Common issues and debugging:
| Issue | Possible cause | Investigation steps |
|---|---|---|
| Trigger never fires | Condition too strict, data not flowing, trigger not started | Check data preview for current values; verify trigger is in "Started" state |
| Trigger fires too often | Condition too lenient, no cooldown, noisy data | Add cooldown period; add "remains true for" duration; smooth data with aggregation |
| Action not delivered | Invalid recipient, throttled, webhook endpoint down | Check action execution log; verify recipient addresses; test webhook URL |
| Trigger fires for wrong objects | Key column incorrect, multiple objects with same key | Verify key column uniqueness; check data preview for duplicate keys |
| Delayed trigger firing | Power BI data source with infrequent refresh | Switch to eventstream for lower latency; increase Power BI refresh frequency |
Missed triggers: If the Fabric service experiences downtime, triggers may miss events during the outage. Data Activator does not retroactively evaluate historical data when it recovers. For critical alerting, implement redundant monitoring (e.g., a parallel Azure Stream Analytics job).
Error investigation workflow:
Scenario: A factory has 200 machines sending temperature readings every 5 seconds via Azure IoT Hub. Alert operations when any machine exceeds 85 degrees for more than 2 minutes.
Setup:
eventType == "temperature".Factory-Temperature-Monitor in the same workspace.Machine with key column machineId. Map properties: temperature (numeric), location (string), lastReading (datetime).High Temperature Alert
temperature > 85 remains true for 2 minutes.[email protected] with subject ALERT: Machine {machineId} at {location} — Temperature {temperature}C.Result: Each of the 200 machines is monitored independently. Machine-042 can fire an alert while Machine-001 remains in normal range. After firing, Machine-042 enters a 15-minute cooldown before it can fire again.
Scenario: A sales dashboard shows daily revenue by region. Alert regional sales managers when their region's revenue drops below target.
Setup:
Sales Dashboard report showing a bar chart of revenue by region.Region with key column regionName.dailyRevenue from the chart's measure.Revenue Below Target
dailyRevenue < 50000.salesManager property (dynamic recipient).Result: Each region is monitored independently. When the Power BI dataset refreshes and a region's revenue is below 50,000, the regional sales manager receives a personalized alert. The 24-hour cooldown prevents duplicate alerts within the same business day.
Scenario: An e-commerce platform sends order events to an eventstream. Notify the customer support team whenever an order is cancelled or put on hold.
Setup:
orderId, status, customerName, orderTotal, assignedAgent.Order-Status-Monitor.SalesOrder with key column orderId. Map properties: status, customerName, orderTotal, assignedAgent.Order Cancelled
status changes to "Cancelled".#order-escalations channel with details.Order On Hold
status changes to "OnHold" remains true for 30 minutes.assignedAgent (dynamic) with order details.Result: Immediate notification for cancellations. For holds, the 30-minute duration ensures the order is genuinely stuck (not just a transient state during processing). The assigned agent receives a direct email with the order context.
Scenario: Monitor multiple Azure services for health. If a service is degraded, alert the on-call team. If it remains degraded for 30 minutes, escalate to management.
Setup:
serviceName, healthStatus ("Healthy", "Degraded", "Outage"), region, impactDescription.Service-Health-Monitor.AzureService with key column serviceName. Map properties: healthStatus, region, impactDescription.Service Degraded — Initial Alert
healthStatus changes to "Degraded" OR healthStatus changes to "Outage".#cloud-ops channel + Email to on-call rotation.Service Degraded — Escalation
healthStatus == "Degraded" OR healthStatus == "Outage" remains true for 30 minutes.[email protected] + Power Automate flow to create a P1 incident in ServiceNow.Result: The two-tier alerting provides immediate visibility for the on-call team and automatic escalation if the issue persists. Each Azure service is tracked independently, so a degradation in Azure SQL does not affect the monitoring of Azure App Service. The Power Automate flow ensures a formal incident is created for prolonged outages.
If trigger source data is persisted to a lakehouse (e.g., via eventstream-to-lakehouse), OneLake desktop sync allows local inspection of the data that feeds Data Activator triggers.
Use case: Read the source Delta table locally to verify data values, check event timestamps, and debug why a trigger did or did not fire. This is a read-only diagnostic aid — Data Activator trigger configuration remains in the Fabric portal.
Triggers: onelake activator local, local trigger data
| Topic | File |
|---|---|
| Trigger conditions — all condition types, operators, duration, compound logic | references/triggers-conditions.md |
| Reflex items — REST API, object/property schema, lifecycle management | references/reflex-items.md |
| Integration patterns — eventstream, Power BI, Power Automate, webhook patterns | references/integration-patterns.md |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thelobbi/claude-m --plugin fabric-data-activatorOther plugins' skills for the same job