Microsoft Fabric Updates Blog

Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline

Introduction

Setting up alerts for pipeline failures on a Teams channel/outlook mail enhances communication, collaboration, and problem-solving within your team. It creates a streamlined workflow for addressing issues, reduces downtime, and promotes a culture of continuous improvement in managing your data pipelines.

In this blog, I’ll showcase a method for sending notifications to both Teams channels/groups and Outlook emails. Microsoft Fabric now includes Teams activity as a recent addition.

simple architecture of sending notifications in fabric	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline

Prerequisites

  1. Basic knowledge of Data Factory pipelines.
  2. Workspace in Microsoft Fabric. 
  3. Teams channel & outlook account (you can do only one of them).

Steps

  1.   Create Pipeline in Fabric Data Factory, click on create pipeline. 
    add new pipeline to fabric workspace
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
							
						
					
			
		
	
			
	
	
	
	
	
 
  2.  In your pipeline, click on Copy Data
    copy data in your workspace
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
  3. create a basic copy activity – Fill all the details and make sure that it will fail this is the use case that we want to be notified on. 
    PS: connect to the teams and the outlook activities on fail in the copy activity like so: 
    pipeline activities
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
							
						
					
			
		
	
			
	
	
	
	
	
 

Steps for adding Teams Activity

  1. Add Teams activity by navigating to the Activities tab and dragging the Teams activity onto the canvas. Then, within the Settings tab, log in to your Teams account.
    teams connection
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
    You should get loading screen (it will create a team’s connection) and after it fill the relevant information, in my case:
    thumbnail image 6 of blog post titled 
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
    I chose to send a message to a teams channel called “test teams channel”.
    thumbnail image 7 of blog post titled 
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
    In message tab, i attached the output of the copy activity.@concat('Copy Activity Failed, Details:',activity('Copy data').output)details of settings in Teams activity:
  2. Output for Teams activity:
    output of teams activity
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
							
						
					
			
		
	
			
	
	
	
	
	
 

Steps for adding Outlook activity

  1. In activities tab, drag outlook activity
  2. Connect our copy activity on fail to the outlook activity
  3. Same as in teams’ activity, in settings tab sign into your outlook account
  4. Fill relevant information about the failure, in advanced tab, i choose to be sensitivity to be confidential @concat('Copy activity in Notification pipeline failed, details:',activity('Copy data').output)
  5. Output for the Outlook activity:
    output of outlook activity
	
	
	 
	
	
	
				
		
			
				
						
							Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline
  6. You can see in the output that it was classified as important and confidential as I listed in the activity settings.

Resources

Module 3 – Automate and send notifications with Data Factory – Microsoft Fabric | Microsoft Learn 
How to copy data using copy activity – Microsoft Fabric | Microsoft Learn 

Related blog posts

Notifying Outlook and Teams channel/group from a Microsoft Fabric pipeline

May 16, 2024 by Jianlei Shen

To improve the flexibility for copying data in Fabric Data Factory, we are excited to announce that now you can edit destination table column types when copying data!  Supported scenarios This new feature allows you to edit the data type of the column for a new or auto-created destination table, if your data destination is … Continue reading “Edit the Destination Table Column Type when Copying Data to Lakehouse Table, Data Warehouse and SQL Data Stores “

May 16, 2024 by Dan Liu

Leverage the power of task flows to design and build your data solutions and manage workspace items in Microsoft Fabric. We’re thrilled to announce that the task flows feature is now in public preview and is enabled for all existing Microsoft Fabric users. Fabric is unifying everything needed to deliver end-to-end data and analytics solutions … Continue reading “Announcing the public preview of task flows in Microsoft Fabric”