使用 Microsoft 流程从 outlook 保存受密码保护的 pdf 文件

Save password protected pdf file from outlook using Microsoft flow

我正在尝试使用 Microsoft flow 自动保存来自 outlook.com 的附件。

相关附件是受密码保护的 PDF。

我试过使用
Attachment Content 作为 Onedrive 操作 Create File

File Content 的值

它给出了错误:
InvalidTemplate. Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '2492': 'The template language function 'base64ToBinary' expects its parameter to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#base64ToBinary for usage details.'.

有没有办法解决或解决这个问题?

提前感谢您的帮助。

我找到了解决方案。
在这个问题中,我试图阅读受密码保护的 pdf 的内容。这不起作用,因为它需要提供密码(这不是一个选项)。

同样的解决方法是:
1. 获取带有附件的电子邮件(作为 trigger/action)。
2. 使用Get Attachment 操作获取附件。
3. 要获取文件内容,请使用 属性(动态内容),即 Get Attachment 中的 Body

这可以用来在 Onedrive 中创建一个新文件。这将创建一个新文件,该文件仍受密码保护,但内容正确。

希望对您有所帮助。