逻辑应用程序和 Outlook 嵌入式图像
Logic Apps and Outlook embedded images
我想将嵌入的图像从 Outlook 电子邮件复制到我的 Blob 存储。我有一个 运行 电子邮件附件的 For Each 步骤(嵌入的图像被识别为附件)。但是当我查看电子邮件的原始输入时,附件[0].contentBytes 为空。尝试使用将 blob 内容设置为“附件内容”来创建 blob 时出现的错误是:
"InvalidTemplate. Unable to process template language expressions in action 'Create_blob' inputs at line '1' and column '3316': '模板语言函数 'base64ToBinary' 期望其参数为字符串.提供的值是 'Null' 类型。请参阅 https://aka.ms/logicexpressions#base64ToBinary 了解使用详情。'."
这是“新电子邮件到达时”步骤的原始输入:
"Attachments": [
{
"@odata.type": "#Microsoft.OutlookServices.FileAttachment",
"Id": "12345",
"LastModifiedDateTime": "2020-11-22T07:38:19+00:00",
"Name": "footer.jpg",
"ContentType": "image/jpeg",
"Size": 13969,
"IsInline": false,
"ContentBytes": null
}
]
非常感谢对这些步骤的任何帮助。谢谢!
请点击Add new parameter
并选择Include Attachments
。 select Yes
对于 Include Attachments
:
我想将嵌入的图像从 Outlook 电子邮件复制到我的 Blob 存储。我有一个 运行 电子邮件附件的 For Each 步骤(嵌入的图像被识别为附件)。但是当我查看电子邮件的原始输入时,附件[0].contentBytes 为空。尝试使用将 blob 内容设置为“附件内容”来创建 blob 时出现的错误是:
"InvalidTemplate. Unable to process template language expressions in action 'Create_blob' inputs at line '1' and column '3316': '模板语言函数 'base64ToBinary' 期望其参数为字符串.提供的值是 'Null' 类型。请参阅 https://aka.ms/logicexpressions#base64ToBinary 了解使用详情。'."
这是“新电子邮件到达时”步骤的原始输入:
"Attachments": [
{
"@odata.type": "#Microsoft.OutlookServices.FileAttachment",
"Id": "12345",
"LastModifiedDateTime": "2020-11-22T07:38:19+00:00",
"Name": "footer.jpg",
"ContentType": "image/jpeg",
"Size": 13969,
"IsInline": false,
"ContentBytes": null
}
]
非常感谢对这些步骤的任何帮助。谢谢!
请点击Add new parameter
并选择Include Attachments
。 select Yes
对于 Include Attachments
: