Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

String splitting doesnt do anything

(0) ShareShare
ReportReport
Posted on by

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?

 

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    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'))

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492