如何确定来自请求主体的电子邮件数据并将其集成到outlook功能中?

最佳答案

使用outlook,您可以轻松地将http请求的整个响应Body发送到电子邮件正文中。
见下文
json - Logic Apps-使用json从http请求正文获取电子邮件信息-LMLPHP
从http请求中选择主体并将其传递给电子邮件主体(作为原始json)
json - Logic Apps-使用json从http请求正文获取电子邮件信息-LMLPHP
相应的代码看起来像

{
    "$connections": {
        "value": {
            "office365": {
                "connectionId": "/subscriptions/....../Microsoft.Web/connections/office365",
                "connectionName": "office365",
                "id": "/subscriptions/......./Microsoft.Web/locations/southindia/managedApis/office365"
            }
        }
    },
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Send_an_email": {
                "inputs": {
                    "body": {
                        "Body": "@{triggerBody()}",
                        "Subject": "test",
                        "To": "abc@abc.com"
                    },
                    "host": {
                        "connection": {
                            "name": "@parameters('$connections')['office365']['connectionId']"
                        }
                    },
                    "method": "post",
                    "path": "/Mail"
                },
                "runAfter": {},
                "type": "ApiConnection"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "parameters": {
            "$connections": {
                "defaultValue": {},
                "type": "Object"
            }
        },
        "triggers": {
            "manual": {
                "inputs": {
                    "method": "POST",
                    "schema": {}
                },
                "kind": "Http",
                "type": "Request"
            }
        }
    }
}

关于json - Logic Apps-使用json从http请求正文获取电子邮件信息,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51921091/

10-17 01:34