Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zAIsdJJ9oqVX30elHW6kbS
Power Automate - General Discussion
Unanswered

Clickable link in send and approval mail should create mail with attachment

Like (0) ShareShare
ReportReport
Posted on 19 Oct 2023 10:57:50 by 80

I have written below code in compose action of power automate which creates an new email after clicking on link. how can I add attachment name also in below code.

 

mailto:@{variables('REQUESTOR_FOR_ID')}?cc=@{variables('PrimaryApprover')}&subject=UAM IT- Request for @{variables('Service_Type')} has been approved by the approver&body=@{variables('RequestBody')}

 

Below code will create a link in my sent approval mail see image below

nejhade_2-1697712709206.png

 

Below code is working:

nejhade_4-1697712792482.png

It creates mail below after clicking on link:

nejhade_5-1697712952029.png

 

 

but I want to have attachment of csv format in that mail. below code is not working. help me with how can i have attachment.

nejhade_0-1697712599155.png

 

  • narayan225 Profile Picture
    2,449 Super User 2025 Season 1 on 24 Oct 2023 at 03:32:16
    Re: Clickable link in send and approval mail should create mail with attachment

    @nejhade 

     

    You cannot pass HTML data as mailto link. It doesn't work that way. You can only send plain/text data in mailto link.

     

    Instead of using MAILTO, you can user a link to trigger a flow and send the email with the necessary table instead. You can pass parameters with the link using relative path.

    Check this article: https://devanalytic365.com/f/trigger-a-flow-by-clicking-on-url-send-information-through-url

     

    Cheers!

  • nejhade Profile Picture
    80 on 23 Oct 2023 at 10:37:19
    Re: Clickable link in send and approval mail should create mail with attachment

    Okay so can i sent as HTML table. As I want that excel data to be in table format. If I attached create html table compose action in body it shows html code not creating html table. Any idea on this. thanks in advance. it would be great help.

  • nejhade Profile Picture
    80 on 23 Oct 2023 at 10:26:12
    Re: Clickable link in send and approval mail should create mail with attachment

    Can I create a html Table on click of link? 

    I am trying to have a compose action which has HTML table and sent in body of link but its showing html code instead of creating table on click of link.

     

    @grantjenkins , @v-jefferni , @WarrenBelz  : Can you pleaase help me here. it would be great help

     

     

  • narayan225 Profile Picture
    2,449 Super User 2025 Season 1 on 20 Oct 2023 at 07:02:20
    Re: Clickable link in send and approval mail should create mail with attachment

    @nejhade 

     

    I don't think you can add attachments directly within the mailto link. Even if you were to create a link like that, Outlook won't allow you to do this as it is a security issue.

     

    Hope this makes sense.

    Cheers!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started
Loading complete