Overview
The OneSignal + Microsoft Fabric integration enables automatic syncing of custom events from your Fabric lakehouse or warehouse to OneSignal to trigger automated messaging campaigns and Journeys based on user behavior. Microsoft Fabric is a unified analytics platform that brings together data engineering, data science, real-time analytics, and business intelligence in a single environment.Requirements
- Access to Custom Events (currently in beta)
- Updated Account Plan (not available on free apps).
Microsoft Fabric
- Microsoft Fabric capacity with workspace access
- Service Principal with appropriate permissions
- SQL Endpoint (Warehouse or Lakehouse) containing event data
- External API access enabled in tenant settings
Setup
1
Create service principal in Azure
Create a new service principal for OneSignal to access your Fabric resources:
- Sign in to the Azure portal
- Navigate to Microsoft Entra ID > App registrations
- Click + New registration
- Enter name: “OneSignal Fabric Integration”
- Select Accounts in this organizational directory only
- Click Register
- Note the Application (client) ID and Directory (tenant) ID
- Under Certificates & secrets, create a new client secret
- Note the client secret value
2
Configure Fabric tenant settings
Enable external access for service principals:
- In Microsoft Fabric, click Settings > Admin portal
- Go to Tenant settings
- Under Developer settings, enable Service principals can use Fabric APIs
- Under OneLake settings, enable Users can access data stored in OneLake with apps external to Fabric
3
Grant workspace access
Add the service principal to your Fabric workspace:
- Navigate to your workspace (create shared workspace if using “My Workspace”)
- Click Manage Access > + Add people or groups
- Select your service principal
- Set role to Contributor
4
Get SQL endpoint
Obtain the SQL connection string for your data source:
- In your workspace, hover over your warehouse/lakehouse
- Click … > Settings
- Copy the SQL connection string (this is your hostname)
5
Connect to OneSignal
In OneSignal, go to Data > Integrations and click Add Integration.Select Microsoft Fabric and provide:
- Hostname: SQL endpoint from Step 4
- Database/Catalog: Your lakehouse or warehouse name
- Tenant ID: Directory ID from Step 1
- Client ID: Application ID from Step 1
- Client Secret: Secret value from Step 1
Event data mapping
Map your to OneSignal’s custom events format:OneSignal Field | Description | Required | |
---|---|---|---|
name | event_name | Event identifier | Yes |
external_id | user_id | User identifier | Yes |
timestamp | event_timestamp | When event occurred | No |
properties | event_data | No |
Example Event Table Schema
Processing Modes
SQL Query Mode
Write custom SQL queries to transform your Fabric data before syncing:Table Mode
Sync entire tables or views directly from your Fabric workspace. OneSignal will automatically map columns to event fields.Limitations
- Requires Fabric capacity (not available on trial)
- SQL endpoints must be accessible to external services
- Large result sets may impact sync performance