Forum Discussion

schneiw's avatar
schneiw
Advocate IV
27 days ago
Solved

Teams Activity: Embedding a Hyperlink

Hi

 

I am trying to user the Teams Activity to post when a pipeline fails. I have built the link, but I can't seem to get it to render as a clickable link when it posts to Teams. What am I missing?

 

Eg. this is the code in the Message of the Teams Activity:

 

🚨 Pipeline Failure Alert

Pipeline: @{pipeline().PipelineName}

https://app.fabric.microsoft.com/workloads/data-pipeline/artifactAuthor/workspaces/@{pipeline().DataFactory}/pipelines/@{pipeline().Pipeline}/@{pipeline().RunId}?experience=fabric-developer

 

Run ID: @{pipeline().RunId}

  • The Teams Activity in Microsoft Fabric/Data Factory currently treats the Message field as plain text, not Markdown or HTML. As a result, URLs included in the message are displayed as text and aren't rendered as clickable hyperlinks.

    For example, a message like:

    Pipeline Failure Alert
    
    Pipeline: MyPipeline
    
    https://app.fabric.microsoft.com/...
    
    Run ID: 12345

    will typically be posted as plain text rather than a clickable link.

    Possible workarounds

    1. Use a Teams webhook or Power Automate (Recommended)
    Instead of the built-in Teams Activity, send the notification through:

    • Power Automate

    • Microsoft Teams Incoming Webhook

    These options support richer message formats (such as Adaptive Cards), allowing you to include clickable hyperlinks, buttons, and formatted content.

    2. Use Adaptive Cards
    If you're already using Power Automate or a Teams webhook, you can create an Adaptive Card with:

    • Pipeline name

    • Run ID

    • Status

    • A "View Pipeline" button that opens the Fabric pipeline directly

    This provides a much better user experience than a plain text notification.

    3. Feature limitation
    If you're using the built-in Teams Activity in Fabric Pipelines, there is currently no supported way to force Markdown or HTML rendering for hyperlinks in the message body.

    It would be great if Microsoft enhanced the Teams Activity to support Markdown or Adaptive Card formatting in future releases, as clickable links are a common requirement for operational alerts.

    For more information:

    πŸ’‘ Helpful? Give a Kudos πŸ‘ β€” keep the community growing.

    βœ… Solved your issue? Mark this as the Accepted Solution βœ”οΈ

    Best regards, Prince Singh | Data Science & Microsoft Fabric Enthusiast

2 Replies

  • Hi schneiw 

     

    What I have done to get this work successfully in the past is I have actually sent the error messages to Power Automate and let power automate then send the Teams message. As I know PAL Automate can put in any link and send it to Teams successfully.

  • The Teams Activity in Microsoft Fabric/Data Factory currently treats the Message field as plain text, not Markdown or HTML. As a result, URLs included in the message are displayed as text and aren't rendered as clickable hyperlinks.

    For example, a message like:

    Pipeline Failure Alert
    
    Pipeline: MyPipeline
    
    https://app.fabric.microsoft.com/...
    
    Run ID: 12345

    will typically be posted as plain text rather than a clickable link.

    Possible workarounds

    1. Use a Teams webhook or Power Automate (Recommended)
    Instead of the built-in Teams Activity, send the notification through:

    • Power Automate

    • Microsoft Teams Incoming Webhook

    These options support richer message formats (such as Adaptive Cards), allowing you to include clickable hyperlinks, buttons, and formatted content.

    2. Use Adaptive Cards
    If you're already using Power Automate or a Teams webhook, you can create an Adaptive Card with:

    • Pipeline name

    • Run ID

    • Status

    • A "View Pipeline" button that opens the Fabric pipeline directly

    This provides a much better user experience than a plain text notification.

    3. Feature limitation
    If you're using the built-in Teams Activity in Fabric Pipelines, there is currently no supported way to force Markdown or HTML rendering for hyperlinks in the message body.

    It would be great if Microsoft enhanced the Teams Activity to support Markdown or Adaptive Card formatting in future releases, as clickable links are a common requirement for operational alerts.

    For more information:

    πŸ’‘ Helpful? Give a Kudos πŸ‘ β€” keep the community growing.

    βœ… Solved your issue? Mark this as the Accepted Solution βœ”οΈ

    Best regards, Prince Singh | Data Science & Microsoft Fabric Enthusiast