Jump to content

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

Featured Replies

Posted

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.

 

 

 

mediumvv2px400.png.9fddf895a1f1ed9f74e057e0c2de7225.png

 

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.
    mediumvv2px400.png.de4e1a1a233b6764c4f318c85760f348.png
     
     
     
  2. In your pipeline, click on Copy Data
    mediumvv2px400.png.c7cf5eea81c9eec59406b0992f5717c2.png
  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:
    514x212vv2.png.8568d4b5696a20e3669159f848b4ac0f.png
    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.
     
    mediumvv2px400.png.0f51f578a50710d2e739c88e81ed9b04.png
    you should get loading screen (it will create a team's connection) and after it fill the relevant information, in my case:
     
    mediumvv2px400.png.a3e67bf7cf2d4431a058c771e57f4d89.png
    I chose to send a message to a teams channel called "test teams channel"
    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:
     
    mediumvv2px400.png.89ab4cc0e25fbff0df4389b87f87a0c7.png
    2. Output for Teams activity:
    675x366vv2.png.7a27e995a45d3d85a264451e460c9edf.png
     
     
    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)

     
     
     
    mediumvv2px400.png.c153865bf728a4bdc35813928668b788.png
     
    5. Output for the Outlook activity:
     
    521x211vv2.png.0e1e19b2cf4f1bf7bf2d80ca0d23990c.png
    You can see in the output that it was classified as important and confidential as i listed in the activity settings.
     

 

In Summary, setting up alerts for pipeline failures and sending notifications to a Teams channel can be highly beneficial for the reasons mentioned above, consider notifying your teams/channels/mail to keep up with the production environment.

 

 

Links:

 

Module 3 - Automate and send notifications with Data Factory - Microsoft Fabric | Microsoft Learn

How to copy data using copy activity - Microsoft Fabric | Microsoft Learn

 

Call-To-Action:

 

- Make sure to establish all connections before starting to work on Fabric.

- check Linkes mentioned above.

 

- Follow me for more tutorials on LinkedIn: Sally Dabbah | LinkedIn

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...