Not sure if I'm in the right topic, but I have a question on how I can pull an attachment name to create a link.
As you probably know, MS just added an "Attachments" control into Powerapps. It is though yet a read only control with a full functionality (upload files to lists) coming late January 2018, which is fine.
So, that "Attachments" control does display names of the files attached but I cannot retrieve their names.
What I'm trying to do, I added an "Image" control where I wanna display the picture of the attached image.
The image URL looks like this:
where "1" is the ID of the list item.
So I can:
- hardcode the beginning of the link
- pull the ID of the list item (DataCard3)
- but I cannot get the name of the attached image.
Is there any way? Thanks!
PS. I have it working this way in the InfoPath, Employee Directory list where people attach users' photos that are displayed within the form.
I also had trouble getting images to show at first but solved it by making sure my image URL actually ends in a supported image format file extension such as *.jpg. Some image URLs may not end with a proper file extension. You must choose one that does. Otherwise it will cause trouble when PowerApps attempts to display the SharePoint link to it.
I have gotten this method to work, but you still have to manually populate the new Link (Picture) field. I tried to write to it from PowerApps, but it says its Read Only, even after changing it using PowerShell.
I use following solution.
I have a sharepoint with an image gallery and a list. My list have two fields, one text field for the link und one imgage field. The setting of the image field is "picture" not "link". The image gallery work in classic experience.
Considering this particular topic was initially posted nearly 2 years ago, I suspect there would be quite a lot interest if someone were able to find a solution that would enable users to not only view any image from any SharePoint library within PowerApps, but furthermore provide the flexibly to render that image within PowerApps at any resolution they so desired (on any platform naturally).
By example, even an image as large as 21MB stored in a Site Assets library, could in fact be rendered within PowerApps as a 78x48px thumbnail as small as 2.38KB, and as equally as high-quality 110KB, 640x360px rendition of that same image could be, and equally any other size resolution of your choice...
MCSM Charter SharePoint
Incredibly moving story, and your clear explanation gives hope that this Power User (not a coder) can replicate this.
I'll update you on my progress. Folks, make sure you read this!
Continue your learning in our online communities.
Stay Up-to-Date by following PowerApps on Twitter
Let's thank our top community contributors
Features releasing from October 2019 through March 2020
Coming to a city near you
Fill out a quick form to claim your user group badge now!
Connect, share, and learn with your peers year-round
Features releasing from April 2019 through September 2019!