如何筛选 Azure 逻辑应用程序中的正文内容

How to filter body content in an Azure Logical Apps

我的基本工作流程是这样的:我在 FTP 服务器上检查特定文件。如果该文件存在,我将获取该文件并将其发送到 Blob 存储。我的问题是:我想过滤文件内容,例如。删除第一行和最后一行,因为在我将其发送到 blob 之前它们不包含任何真实数据。第一行包含时间戳,最后一行包含“行计数”。该文件包含逗号分隔的字段。我该如何做到这一点?有可能吗?

谢谢 奥斯加

这个问题没有简单的解决方案。您可以尝试转换 csv to json,从中删除不必要的数据,并基于该数据创建一个 blob json,但这听起来比它应该做的要难。

考虑使用 Azure functions:

Azure Functions allows you to run small pieces of code (called "functions") without worrying about application infrastructure. With Azure Functions, the cloud infrastructure provides all the up-to-date servers you need to keep your application running at scale.

在那里进行此类文件操作会容易得多。