简体   繁体   English

通过数据工厂使用逻辑应用的动态 Email 附件

[英]Dynamic Email attachment using Logic Apps via Data Factory

I need to build a generic Logic app using which i can send mail with attachment.我需要构建一个通用的逻辑应用程序,我可以使用它发送带有附件的邮件。 Is this possible to pass path and file name as parameter so i can use same logic app for different ADF pipelines.这是否可以将路径和文件名作为参数传递,以便我可以将相同的逻辑应用程序用于不同的 ADF 管道。

Of course we can use a generic with a generic logic app.当然,我们可以将泛型与泛型逻辑应用程序一起使用。 You just need to set the " When a HTTP request is received " trigger with two parameters, we can do it by specify the schema of it(shown like below).您只需使用两个参数设置“当收到 HTTP 请求时”触发器,我们可以通过指定它的架构来实现(如下所示)。

schema:架构:

{
    "type": "object",
    "properties": {
        "path": {
            "type": "string"
        },
        "fileName": {
            "type": "string"
        }
    }
}

在此处输入图像描述

In following actions of your logic app, you can use the parameters path and fileName when you get the file from Azure Data Lake.在逻辑应用的以下操作中,您可以在从fileName Data Lake 获取文件时使用参数path和文件名。 在此处输入图像描述

Then you can use the logic app in Azure Data Factory by a " Web " activity.然后,您可以通过“ Web ”活动使用 Azure 数据工厂中的逻辑应用程序。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM