[英]How to send an email with query output result as attachment from Data Factory?
我在 SSMS 表中有一個數據,我需要使用數據工廠將其作為 email 附件發送。 任何以這種方式設置管道的建議,以便我可以從表中查詢數據並附加 output 並將其發送到 email 中,我們將不勝感激。
要將查找活動 Output 作為附件發送,請遵循以下過程:
在邏輯應用程序中,對於“發送 Email (V2) ”操作,自定義您希望如何格式化 email,使用屬性並添加附件Attachment
Add new parameter
下拉列表中的附件,提供您想要的附件名稱,並將附件內容添加為來自動態內容的message
。
對於正文,輸入以下 JSON:
{
"message" : "@{string(activity('Lookup1').output.value)}",
"dataFactoryName" : "@{pipeline().DataFactory}",
"pipelineName" : "@{pipeline().Pipeline}" ,
"receiver" : "@{pipeline().parameters.receiver}"
}
Output:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.