如何使用 Power Automate 从电子邮件链接(可下载/可单击的内容)自动下载 URL 文件

How to automatically download URL file from the Email link (downloadable/clickable content) with Power Automate

提问人:MmVv 提问时间:11/14/2023 最后编辑:MmVv 更新时间:11/14/2023 访问量:27

问:

我已经挣扎了几个星期,我无法让它在 Power Automate 中工作。 问题如下:

  1. 我在我的电子邮件(星期一早上)中收到一堆系统生成的电子邮件,其中包含可下载的链接:

该可点击链接采用以下形式:https://deu01.test.outlook.com/?url=https%3A%2F%2Fcdn1.test.co/XYZ/&%$!%&/§§abbvcccc =>(无论如何它是一个很长的 URL)

enter image description here

当然,这些电子邮件的数量是10个,名称不同,但其中的内容(单击链接后)始终是.csv,并且始终具有相同的结构。

  1. 我想完成的是自动化该过程,获取这些链接的内容并将它们保存在 SharePoint 上的某个位置,比如说,不幸的是,我被困在 Power Automate 中开发正确的操作/触发器以获得这项工作。

  2. 我们有高级连接器!

这是我到现在为止的“工作”:

enter image description here

这些是单独的操作:

a)

enter image description here

b)

enter image description here

c)

enter image description here

d)

我通常收到的错误是在此步骤中:提供的“Http”操作 URI“sanitized”无效。URI 必须是格式正确的绝对 URI,不引用本地主机或 UNC 路径。

enter image description here

e)

enter image description here

f)

enter image description here

我将其用于变量:

substring(  substring(outputs('html'), indexOf(outputs('html'), 
'https://deu01.test.outlook.com')),   0,  indexOf(substring(outputs('html'), 
indexOf(outputs('html'), 'https://deu01.test.outlook.com')), '"'))

不幸的是,我不熟悉这种流程,尤其是 HTTPS 等。我在谷歌上看到了一些东西,但我没有得到正确的理解......

任何形式的帮助将不胜感激!

我是这样指导的:

https://powerusers.microsoft.com/t5/Building-Flows/Automatically-download-a-file-that-is-in-an-url-link-inside-the/m-p/761142#M105122

power-automate power-automate-desktop

评论

0赞 Skin 11/14/2023
没那么简单。你不能总是只拿一个网址,然后通过HTTP下载一个文件,就像你自己按下按钮一样。PowerAutomate 桌面可能更适合您。如果我们不能在您的特定用例中亲自尝试,那就太难了。
0赞 MmVv 11/14/2023
@Skin是的,我可以想象,我也在考虑桌面版本,但那又是另一回事......我以为这可能很“简单”。
0赞 Skin 11/14/2023
了解使用 Postman 和该 URL 可以实现的目标。如果可以通过 Postman 获取文件的内容,也可以在 PowerAutomate 中执行此操作。

答: 暂无答案