【问题标题】:How to read the parameter values in send email action in azure logic app如何在 Azure 逻辑应用程序中读取发送电子邮件操作中的参数值
【发布时间】:2020-10-23 06:20:57
【问题描述】:

我使用 Visual Studio 2017 中的 ARM 模板创建了 azure logic 应用程序。我使用发送电子邮件操作来发送电子邮件。但我想从主题、收件人、正文属性的发送电子邮件操作中读取参数值。

Example for Subject: “Hi, how are you? <parameter value>”

那么,有没有人可以就此提出建议。

【问题讨论】:

    标签: visual-studio azure azure-logic-apps arm-template


    【解决方案1】:

    也许你可以参考下面的格式来读取参数的值:

    "Send_an_email_(V2)": {
        "runAfter": {
            "xxxxxxxxxx": [
                "Succeeded"
            ]
        },
        "type": "ApiConnection",
        "inputs": {
            "body": {
                "Body": "<p>@{parameters('param1')}</p>",
                "Subject": "@{parameters('param2')}",
                "To": "@{parameters('param3')}"
            },
            "host": {
                "connection": {
                    "name": "@parameters('$connections')['office365']['connectionId']"
                }
            },
            "method": "post",
            "path": "/v2/Mail"
        }
    }
    

    对于您的主题示例,您可以使用"Subject": "Hi, how are you? @{parameters('param2')}"

    【讨论】:

    • 感谢@Frank Gong
    猜你喜欢
    • 2023-04-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-18
    相关资源
    最近更新 更多