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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Reading a specific ent...
Power Automate
Answered

Reading a specific entry in a variable or text file.

(0) ShareShare
ReportReport
Posted on by 7

I have text I have extracted from a pdf. It is saved in a variable as

 

DSellerberg_0-1651186339586.png

DSellerberg_2-1651186495633.png

how do I get to and save to a new variable the contents of Line 2.

I have it also saved to a text file. But again how to I get to Line 2 and set it to its own variable.

 

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Assuming there is a newline in your strPDFText...

    Use Split Text action and split by newline.

    This will split into a datatable called TextList.

    After splitting, %TextList[1]% will have your 2nd line (because it starts from 0).

    Use Set variable to store it in the new variable you want.

     

    Post back if you are facing any challenge. 

     

     

  • DSellerberg Profile Picture
    7 on at

    Thank you, This did the trick.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard