web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / String splitting doesn...
Power Automate
Unanswered

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?

 

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard