gpt4 book ai didi

json - 逻辑应用 - 使用 json 从 http 请求正文获取电子邮件信息

转载 作者:可可西里 更新时间:2023-11-01 17:04:50 25 4
gpt4 key购买 nike

如何从请求正文中确定电子邮件数据并将其集成到 Outlook 功能中?

enter image description here

最佳答案

您可以使用 Outlook 轻松地将 Http 请求响应的整个 Body 发送到电子邮件正文中。

见下文

enter image description here

从 HTTP 请求中选择正文并将其传递到电子邮件正文(作为原始 JSON)

enter image description here

相应的代码如下所示

{
"$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": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f9989b9ab9989b9ad79a9694" rel="noreferrer noopener nofollow">[email protected]</a>"
},
"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 - 逻辑应用 - 使用 json 从 http 请求正文获取电子邮件信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51921091/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com