[英]Logic App take first 5 characters from the items in array
I would like to be able to extract the first 5 characters from the element in the array in Logic App.我希望能够从 Logic App 中的数组元素中提取前 5 个字符。 I am able to generate the list (below image) but I need only first 5 characters not the whole name
我能够生成列表(下图)但我只需要前 5 个字符而不是全名
and here is the result这是结果
Thank you:)谢谢你:)
Using substring function you can extract first five characters of the file name .使用 substring function 可以提取文件名的前五个字符。 I have reproduced issue from my side and below are steps I followed,
我已经从我这边复制了问题,下面是我遵循的步骤,
Created logic app as shown below,创建的逻辑应用程序如下所示,
Taken http trigger and then initialized a variable of type array.取http触发器,然后初始化一个数组类型的变量。
Next listing Azure blobs in storage account.接下来列出存储帐户中的 Azure 个 blob。
substring(items('For_each')?['DisplayName'],0,5) substring(items('For_each')?['DisplayName'],0,5)
Creating blob with using content as array variable output.使用内容作为数组变量 output 创建 blob。
File names in storage account displayed as shown below,存储帐户中的文件名显示如下所示,
Logic app ran successfully and blob created in storage account as shown below,逻辑应用成功运行并在存储帐户中创建了 blob,如下所示,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.