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 Apps / Trimming a URL and sea...
Power Apps
Answered

Trimming a URL and searching on value

(0) ShareShare
ReportReport
Posted on by 381

Hello,

I have a sharepoint table presented on a Power APP as a data table. 

One of the columns on my data table is ID which lists all the ID.  

 

I would like a user to come into the form, and search for the ID - However, instead of getting users to extract an ID from a URL, i would like them to insert the full URL into the search box, and i would like PowerApps to trim the URL to find the ID. 

 

Every ID is in the same place inside of a URL, e.g. after the word ID, there is a / followed by the ID

 

https://mywebsite/ID/ekdh5e14-37954-41tk-bh07-6949487a3f97/Data/7365bb90-a412-4042-a9c4-02e12bde8ebf/Section

 

If a user was to come into a search box, insert the above URL, can PowerApps extract the ID and then search on it? (in the this case, the ID is ekdh5e14-37954-41tk-bh07-6949487a3f97), so the data table will only show that ID?

 

If so, could someone show me how?

Categories:
  • Verified answer
    Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @Vstar19,

     

    To extract the ID you could use a couple of split functions:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-split#substring-extraction

     

    Below is an example of that approach with an input and label:

    First(Split(Last(Split(UserInput.Text,"ID/")).Result,"/Data")).Result

     

    coupleofsplitfunctions.png

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard