[英]Convert CSV elements into a single Array using Azure Logic Apps
I have a csv file which has the following sample values ReportId,ReportName 1,Poy 2,Boy 3,Soy我有一个 csv 文件,其中包含以下示例值 ReportId,ReportName 1,Poy 2,Boy 3,Soy
I want this to be converted into a single array like [ReportId,ReportName,1,Poy,2,Boy,3,Soy] using logic apps.我希望使用逻辑应用将其转换为单个数组,例如 [ReportId,ReportName,1,Poy,2,Boy,3,Soy]。 Is this possible?
这可能吗?
You could refer to my below flow.你可以参考我下面的流程。 Init a csv data, then split with expression
split(outputs('Compose'),'\n')
, you need to go to code view to edit the expression, or it would be split(outputs('Compose'),'\\n')
.初始化一个 csv 数据,然后用表达式
split(outputs('Compose'),'\n')
,你需要 go 编码视图来编辑表达式,否则它会被split(outputs('Compose'),'\\n')
。
Then do the loop action to get the single data.然后执行循环操作以获取单个数据。 The
for each 2
input is split(item(),',')
. for each 2
输入是split(item(),',')
。 Then append the current item to the array.然后 append 将当前项添加到数组中。
Here is my result.这是我的结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.