cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

String splitting doesnt do anything

Greetings,

 

In my flow I take text from a scanned invoice using the micrsosoft Vision API. Then I would like to take the invoice number out of the text by splitting the text everywhere where it says "\n", feed that to a string array and then search for the invoicenumber by going through the array using a for each loop.

Though somehow the split doesnt do anything. The String looks exactly the same before and after the operation.

This is the code of the split in a set variable action:

 

split(body('Optical_Character_Recognition_(OCR)_to_Text')?['text'],'\')
 
Does anybody have a clue why this doesnt work?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: String splitting doesnt do anything

Okay,

 

I was not expecting to find a solution this early, but the trick is to initialize a new variable and just press the enter key in the corresponding field. Then replace the '\' with that variable. Code is as follows:

 

split(body('Optical_Character_Recognition_(OCR)_to_Text')?['text'],variables('enter'))

View solution in original post

1 REPLY 1
Highlighted
Frequent Visitor

Re: String splitting doesnt do anything

Okay,

 

I was not expecting to find a solution this early, but the trick is to initialize a new variable and just press the enter key in the corresponding field. Then replace the '\' with that variable. Code is as follows:

 

split(body('Optical_Character_Recognition_(OCR)_to_Text')?['text'],variables('enter'))

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Kudoed Authors
Users online (7,334)