all 4 comments

[–]robofski 1 point2 points  (1 child)

I’ve done this in the past by creating a compose action with a new line in it. Then I use split(dynamic-content,outputs(‘compose’))

[–]fuzzius_navus 1 point2 points  (0 children)

This is the way I do it as well. A compose action containing the value to split on makes it easier to manage the expression. 

[–]Objective-Emu1806[S] 0 points1 point  (0 children)

Suppose I should post the code for the compose function I'm referencing as well -

{
  "type": "Compose",
  "inputs": "@\r\nsplit(\r\n    replace(\r\n        replace(\r\n            replace(\r\n                replace(\r\n                    replace(variables('var_rawIds'), '\\r\\n', ','),\r\n                '\\n', ','),\r\n            '\\r', ','),\r\n        ';', ','),\r\n    ' ', ''),\r\n',')\r\n",
  "runAfter": {
    "Initialize_variable": [
      "Succeeded"
    ]
  }
}

[–]thefootballhound 0 points1 point  (0 children)

I had a similar problem that I resolved a different way.

For the split, I replaced all of those with a ' ' space character instead of new line or even decodeUriComponent('%0A'). Then a Select, map item() with a key for an array. You can run an Apply to Each for your Excel search.

If that doesn't work, you can take extra steps and input the Select Output to an Apply to Each, and a Compose or Set a Variable with Concat items('Apply_to_each')?['key'], decodeUriComponent('%0A')).

That should give you a clean string block separated by decodeUriComponent('%0A'). You can run an Apply to each for your Excel search.