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 / Get last part of a string
Power Apps
Answered

Get last part of a string

(0) ShareShare
ReportReport
Posted on by 510

Hi. I have a Gallery and one of the labels is an image URL e.g.

 

https://subdomain.sharepoint.com/sites/myTeam/Shared Documents/Image.jpg

 

Instead of displaying the URL, I would prefer to display just Image.jpg

How do I get the last part of the URL string after the last /?

Categories:
  • JayMagness Profile Picture
    1,663 on at

    HI,

     

    Try this:

    Concat and Concatenate functions - Power Apps | Microsoft Docs

     

    - If the first part is the same you can take after the last "/"

     

    Or if this is a gallery I would just show the image in the gallery and let them launch it on select.

  • rwittels Profile Picture
    510 on at

    I have read up on Concat and Split but cannot find an explanation of what I am trying to do.
    My images are in SharePoint and PowerApps does not support image authentication in mobile apps yet so the images don't display on a mobile device.

    I'll keep trying. Thanks. 

  • Verified answer
    ganeshsanap Profile Picture
    1,555 on at

    @rwittels Use below formula:

     

    Last(Split("https://subdomain.sharepoint.com/sites/myTeam/Shared Documents/Image.jpg", "/")).Result

     

    Output:

    Split image URL.PNG


    Please click Accept as solution & 👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard