如何使用Power Automate向WebAPI发送电子邮件附件
我是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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几件事。
首先,在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.Secondly, make sure you have a
Get Attachment (V#)
step prior to theHTTP
action.This step actually retrieves the contents of the attachment.