如何使用Power Automate向WebAPI发送电子邮件附件

发布于 2025-02-07 21:31:07 字数 399 浏览 1 评论 0原文

我是Power Automate的新手。我需要阅读我的电子邮件附件,并将每个附件发送给WebAPI作为base64。我使用以下表达式将电子邮件附件转换为base64。但是流动显示错误为“正确参考'get_attachment_(v3)'的'get_attachment_(v3)'的输入参数'http'的输入参数。

将附件转换为base64应该是正确的表达式。

expression :base64(body('get_attachment_(v3)')?['contentbytes'])

错误:

I am new to power automate. I need to read my email attachments and send each attachment to webapi as base64. I used below expression to convert email attachment to base64. but flow shows error as "Correct to include a valid reference to 'Get_Attachment_(V3)' for the input parameter(s) of action 'HTTP'.

what should be correct expression to convert attachment to base64.

expression: base64(body('Get_Attachment_(V3)')?['contentBytes'])

error:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾城泪 2025-02-14 21:31:07

几件事。

首先,在JSON主体中,您只需要围绕content属性的价值添加引号。

其次,请确保您在http操作之前有一个获取附件(v#)步骤。

此步骤实际上检索了附件的内容。

A couple of things.

Firstly, in your JSON body, you just need to put quotes around the value of the content property.

Body

Secondly, make sure you have a Get Attachment (V#) step prior to the HTTP action.

This step actually retrieves the contents of the attachment.

Get Attachment

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文