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 /?
Solved! Go to Solution.
@rwittels Use below formula:
Last(Split("https://subdomain.sharepoint.com/sites/myTeam/Shared Documents/Image.jpg", "/")).Result
Output:
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 👍
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.
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.
@rwittels Use below formula:
Last(Split("https://subdomain.sharepoint.com/sites/myTeam/Shared Documents/Image.jpg", "/")).Result
Output:
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 👍
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
254 | |
251 | |
83 | |
39 | |
30 |
User | Count |
---|---|
302 | |
264 | |
118 | |
65 | |
47 |