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 Apps
Answered

Parse text

(0) ShareShare
ReportReport
Posted on by 139

Hi,

 

I need help to parse text.

 

The text was obtained as below. How can i obtain only the Document Name column and show in Text label in Power Apps?

 

```
| No. | Document ID | Document Name |
| -------- | -------- | -------- |
| 1 | ac5a956a3657 |file1.pdf |
| 2 | aa750aaef02f | Test2.pdf |
| 3 | 9e36e0868e74 | file3.pdf |
| 4 | f75cc33b1644 | file.pdf |
| 5 | f083f89d3a0e | file.pdf |
| 6 | f95bd41ca060 | file.pdf |
| 7 | ae113527b13d | file.pdf |
```

Categories:
  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Moderator on at

    Throw the text into a text box or label.
    Drop a button on the screen - In the OnSelect property of the button:

    Clear(col_DocNames);
    ForAll(
     Split(
     TextInput1.Text,
     Char(10)
     ),
     Collect(
     col_DocNames,
     {
     index: Value(Last(FirstN(Split(Value,"|"), 2)).Value),
     identifier: Last(FirstN(Split(Value,"|"), 3)).Value,
     docName: Last(FirstN(Split(Value,"|"), 4)).Value
     }
     )
    );

     

    Now you can get a document name via it's id:

    LookUp(col_DocNames, index = 2, docName)

     

  • Verified answer
    pengwei Profile Picture
    139 on at

    Thank you @DJ_Jamba , it helped me a lot.

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 Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard