Send notification on a Microsoft Teams channel from a Data Factory pipeline

Published Jun 18 2021 05:09 AM 3,706 Views
Microsoft

There is often a need to send notifications during or after job execution. It helps with proactive alerting and reduces the need for reactive monitoring to find out the issues. We had published ways to send email notifications using logic apps that the Data Factory pipeline can invoke.

 

Many enterprises are leveraging Microsoft Teams for collaboration; this helps you easily integrate yet another critical thing: proactive pipeline alerts into Microsoft teams. 

Here is how to send a notification on a teams channel from an Data Factory pipeline.

 

Prerequisite:

  • Create an incoming webhook in your Microsoft Teams channel. If you are new to Microsoft Teams or would like to create a new Teams channel for this purpose, please refer to the Teams documentation.  
    1. Open Microsoft Teams and go to Apps > Search for 'Incoming Webhook' and select the 'Incoming Webhook' connector.
      AbhishekNarain_0-1624014991470.png

       

    2. Add the connector to the Team site where you want to send the notifications. 
      AbhishekNarain_1-1624015001405.png

       AbhishekNarain_2-1624015013707.png

    3. Name the Webhook as appropriate and Optionally upload an icon to identify your messages.
      AbhishekNarain_3-1624015243659.png

       

    4. Copy the store of the Webhook URL that is generated on creation for later use in ADF.
      AbhishekNarain_4-1624015262333.png

       

    5. You will see the notification in the channel where you add the Webhook connector. 
      AbhishekNarain_5-1624015273426.png

       

Steps to send notifications on Teams channel from a Data Factory pipeline:

  1. Create a new 'pipeline from template'. We have added a pipeline template which will make it easier to get started with teams notifications. 
    AbhishekNarain_6-1624015438274.png

     

  2. Search for teams, select and use 'Send notification to a channel in Microsoft Teams' template. 
    AbhishekNarain_7-1624015449153.png

    AbhishekNarain_8-1624015457870.png

    AbhishekNarain_9-1624015774985.png

     

  3. It is recommended to add the current Data Factory's Subscription IDResource Group, and the Teams webhook URL (refer prerequisite) under the default value of the relevant parameter placeholders (<update value>).    
    AbhishekNarain_10-1624015849818.png

     

    Note: It is used to construct the monitoring URL. Suppose you do not provide a valid subscription and resource group (of the same data factory where the pipelines belong). In that case, the notification will not contain a valid pipeline monitoring URL, but the messages will still work. 
    Also, it helps prevent the need to always passing those values from another pipeline. But if you intend to control those value through a metadata-driven approach, then you should modify accordingly. 

  4. Add an 'Execute Pipeline' activity into the pipeline from which you would like to send notifications on the Teams channel. Select the pipeline generated from the 'Send notification to a channel in Microsoft Teams' template as the 'Invoked pipeline' in the 'Execute Pipeline' activity. 
    AbhishekNarain_11-1624015889847.png

     

  5. Customize the parameters accordingly based on activity type. 
    AbhishekNarain_12-1624015901397.png

     

Note: You can leverage ADF system variables and expressions to make your messages dynamic. As an example -  

  • @activity('CopyData').output.errors[0].Message
  • @activity('DataFlow').error.Message expression 

The above expressions will get you the relevant error messages which can be sent out as notification on a Teams channel. 

You can find additional 'Copy' activity output properties here.

 

You're encouraged to look into the Microsoft Teams supported notification payload schema and further customize the above template to your needs. 

AbhishekNarain_13-1624017183019.png

 

If you would like to be notified by the Teams application (cross-platform) through push notifications, then make sure you are subscribed to the channel notification

 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2456636%22%20slang%3D%22en-US%22%3ESend%20notification%20on%20a%20Microsoft%20Teams%20channel%20from%20a%20Data%20Factory%20pipeline%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2456636%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThere%20is%20often%20a%20need%20to%20send%20notifications%20during%20or%20after%20job%20execution.%20It%20helps%20with%20proactive%20alerting%20and%20reduces%20the%20need%20for%20reactive%20monitoring%20to%20find%20out%20the%20issues.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EWe%20had%20published%20ways%20to%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fdata-factory%2Ftutorial-control-flow-portal%23create-email-workflow-endpoints%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Esend%20email%20notifications%20using%20logic%20apps%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bthat%20the%20Data%20Factory%20pipeline%20can%20invoke.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EMany%20enterprises%20are%20leveraging%20Microsoft%20Teams%20for%20collaboration%3B%20this%20helps%20you%20easily%20integrate%20yet%20another%20critical%20thing%3A%20proactive%20pipeline%20alerts%20into%20Microsoft%20teams.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EHere%20is%20how%20to%20send%20a%20notification%20on%20a%20teams%20channel%20from%20an%20Data%20Factory%20pipeline.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--437469542%22%20id%3D%22toc-hId--438273034%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EPrerequisite%3A%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ECreate%20an%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eincoming%20webhook%3C%2FA%3E%20in%20your%20Microsoft%20Teams%20channel.%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EIf%20you%20are%20new%20to%20Microsoft%20Teams%20or%20would%20like%20to%20create%20a%20new%20Teams%20channel%20for%20this%20purpose%2C%20please%20refer%20to%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fcreate-a-channel-in-teams-fda0b75e-5b90-4fb8-8857-7e102b014525%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ETeams%20documentation%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E.%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3COL%3E%0A%3COL%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EOpen%20Microsoft%20Teams%20and%20go%20to%20Apps%20%26gt%3B%20Search%20for%20'Incoming%20Webhook'%20and%20select%20the%20'Incoming%20Webhook'%20connector.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_0-1624014991470.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289891i756B5EEBD94CAD19%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_0-1624014991470.png%22%20alt%3D%22AbhishekNarain_0-1624014991470.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EAdd%20the%20connector%20to%20the%20Team%20site%20where%20you%20want%20to%20send%20the%20notifications.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_1-1624015001405.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289892iA94ED5BCB304F701%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_1-1624015001405.png%22%20alt%3D%22AbhishekNarain_1-1624015001405.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_2-1624015013707.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289893i265E2FF8FEA0C2CC%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_2-1624015013707.png%22%20alt%3D%22AbhishekNarain_2-1624015013707.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EName%20the%20Webhook%20as%20appropriate%20and%20Optionally%20upload%20an%20icon%20to%20identify%20your%20messages.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_3-1624015243659.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289896iF362DA20AD5346DD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_3-1624015243659.png%22%20alt%3D%22AbhishekNarain_3-1624015243659.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ECopy%20the%20store%20of%20the%20Webhook%20URL%20that%20is%20generated%20on%20creation%20for%20later%20use%20in%20ADF.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_4-1624015262333.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289897i35AF5AD3437D4E56%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_4-1624015262333.png%22%20alt%3D%22AbhishekNarain_4-1624015262333.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EYou%20will%20see%20the%20notification%20in%20the%20channel%20where%20you%20add%20the%20Webhook%20connector.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_5-1624015273426.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289898i8D9D2035C0392264%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_5-1624015273426.png%22%20alt%3D%22AbhishekNarain_5-1624015273426.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FOL%3E%0A%3CH2%20id%3D%22toc-hId-2050043291%22%20id%3D%22toc-hId-2049239799%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ESteps%20to%20send%20notifications%20on%20Teams%20channel%20from%20a%20Data%20Factory%20pipeline%3A%3C%2FSPAN%3E%3C%2FH2%3E%0A%3COL%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ECreate%20a%20new%20'%3CSTRONG%3Epipeline%20from%20template%3C%2FSTRONG%3E'.%20We%20have%20added%20a%20pipeline%20template%20which%20will%20make%20it%20easier%20to%20get%20started%20with%20teams%20notifications.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_6-1624015438274.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289900i35AC7B96A0FC2EA9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_6-1624015438274.png%22%20alt%3D%22AbhishekNarain_6-1624015438274.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ESearch%20for%20teams%2C%20select%20and%20use%20'%3CSTRONG%3ESend%20notification%20to%20a%20channel%20in%20Microsoft%20Teams%3C%2FSTRONG%3E'%20template.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_7-1624015449153.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289901iB03B72EBD79017B9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_7-1624015449153.png%22%20alt%3D%22AbhishekNarain_7-1624015449153.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_8-1624015457870.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289902iC989C8AA8AD6E229%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_8-1624015457870.png%22%20alt%3D%22AbhishekNarain_8-1624015457870.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_9-1624015774985.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289903i4904505C6747C4F9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_9-1624015774985.png%22%20alt%3D%22AbhishekNarain_9-1624015774985.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EIt%20is%20recommended%20to%20add%20the%20current%20Data%20Factory's%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ESubscription%20ID%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EResource%20Group%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%20and%20the%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ETeams%20webhook%20URL%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B(refer%20prerequisite)%20under%20the%20default%20value%20of%20the%20relevant%20parameter%20placeholders%20(%3CUPDATE%20value%3D%22%22%3E).%26nbsp%3B%20%26nbsp%3B%3C%2FUPDATE%3E%3C%2FSPAN%3E%3CSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_10-1624015849818.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289904i5DF312E1A38F963E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_10-1624015849818.png%22%20alt%3D%22AbhishekNarain_10-1624015849818.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CEM%3ENote%3A%3C%2FEM%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CEM%3E%26nbsp%3BIt%20is%20used%20to%20construct%20the%20monitoring%20URL.%20Suppose%20you%20do%20not%20provide%20a%20valid%20subscription%20and%20resource%20group%20(of%20the%20same%20data%20factory%20where%20the%20pipelines%20belong).%20In%20that%20case%2C%20the%20notification%20will%20not%20contain%20a%20valid%20pipeline%20monitoring%20URL%2C%20but%20the%20messages%20will%20still%20work.%26nbsp%3B%3CBR%20%2F%3EAlso%2C%20it%20helps%20prevent%20the%20need%20to%20always%20passing%20those%20values%20from%20another%20pipeline.%20But%20if%20you%20intend%20to%20control%20those%20value%20through%20a%20metadata-driven%20approach%2C%20then%20you%20should%20modify%20accordingly.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EAdd%20an%20'%3CSTRONG%3EExecute%20Pipeline%3C%2FSTRONG%3E'%20activity%20into%20the%20pipeline%20from%20which%20you%20would%20like%20to%20send%20notifications%20on%20the%20Teams%20channel.%20Select%20the%20pipeline%20generated%20from%20the%20'Send%20notification%20to%20a%20channel%20in%20Microsoft%20Teams'%20template%20as%20the%20'%3CSTRONG%3EInvoked%20pipeline%3C%2FSTRONG%3E'%20in%20the%20'Execute%20Pipeline'%20activity.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_11-1624015889847.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289905iD03ADC9E439D0659%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_11-1624015889847.png%22%20alt%3D%22AbhishekNarain_11-1624015889847.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ECustomize%20the%20parameters%20accordingly%20based%20on%20activity%20type.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_12-1624015901397.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289906i1B0F846BF06F7630%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_12-1624015901397.png%22%20alt%3D%22AbhishekNarain_12-1624015901397.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ENote%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3BYou%20can%20leverage%20ADF%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fcontrol-flow-system-variables%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Esystem%20variables%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Band%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fcontrol-flow-expression-language-functions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eexpressions%26nbsp%3B%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eto%20make%20your%20messages%20dynamic.%20As%20an%20example%20-%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%40activity('CopyData').output.errors%5B0%5D.Message%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%40activity('DataFlow').error.Message%20expression%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20above%20expressions%20will%20get%20you%20the%20relevant%20error%20messages%20which%20can%20be%20sent%20out%20as%20notification%20on%20a%20Teams%20channel.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EYou%20can%20find%20additional%20'Copy'%20activity%20output%20properties%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fcopy-activity-monitoring%23monitor-programmatically%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EYou're%20encouraged%20to%20look%20into%20the%20Microsoft%20Teams%20supported%20%3CA%20href%3D%22https%3A%2F%2Fadaptivecards.io%2Fexplorer%2FAdaptiveCard.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Enotification%20payload%20schema%3C%2FA%3E%20and%20further%20customize%20the%20above%20template%20to%20your%20needs.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AbhishekNarain_13-1624017183019.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289907i3035AAE40D1595CB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AbhishekNarain_13-1624017183019.png%22%20alt%3D%22AbhishekNarain_13-1624017183019.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20would%20like%20to%20be%20notified%20by%20the%20Teams%20application%20(cross-platform)%20through%20push%20notifications%2C%20then%20make%20sure%20you%20are%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fcustomize-channel-notifications-in-teams-c72b8c07-37e1-4a0b-82c9-fdfda04f15b2%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Esubscribed%20to%20the%20channel%20notification%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2456636%22%20slang%3D%22en-US%22%3E%3CP%3ENotify%20teams%20channel%20from%20an%20data%20pipeline!%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22teams1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F289448i2D0F741C84D9883F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22teams1.png%22%20alt%3D%22teams1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2456636%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAlerts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Data%20Factory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMonitoring%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENotifications%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Jun 18 2021 11:32 PM
Updated by: