删除 来自电力自动化字符串

问题描述 投票:0回答:1

我是一个自动化的菜鸟,并试图读取一个 csv 文件,我可以将其处理成将在电子邮件中使用的表格。 我终于能够删除 在电力自动化方面。如何删除转义字符 从这里出发?

我尝试过以下方法:

string(outputs('Get_file_content')?['body'])
replace(replace(replace(outputs('Compose'), '\r\n', ''), '\n', ''), '\r', '')
split(outputs('Convert_to_String'), '\n')

Power automate trying to remove \r

power-automate
1个回答
0
投票

使用

Replace()
函数并将
\r
表示为
decodeUriComponent('%0A')

样品:

replace('string\r',decodeUriComponent('%0A'),'')

以下是钥匙:

  1. decodeUriComponent('%0A') =>
  2. decodeUriComponent('%0D') =>

希望这有帮助。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.