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
Below code is working:
It creates mail below after clicking on link:
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.
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!
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.
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
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!
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional