Showing results for 
Search instead for 
Did you mean: 
Post Partisan
Post Partisan

Multiple images in single web file in portal

Hi All,

I have a question regarding web files. how can we call multiple images in code. For instance, I can more files or images using the attachment in notes. But how can I call that in code?




Super User II
Super User II

Hi, that wouldn't be the recommendation on how to use Web Files.


The Web Files can be accessed by using the partial url, for example if you have your web file Parent Page set to Home, and partial URL mylogo.png

you can simply access your file via <portal url>/mylogo.png

by default it will always retrieve the most recent note/attachment


if you are querying directly the notes entity, perhaps you might be able to read more than one file, but I wouldn't really recommend this. Just create multiple web files and you should be good to go.

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User

Oliver Rodrigues


Solution Sage
Solution Sage

Only the last Web File attachment is able to be referenced.  The code on the Portal references the values on the Web File record as the identifier on the Portal (e.g. it doesn't matter what you name the attachment it gets rendered based on the Web File record details).  The Caching manages this assignment of the last attachment so is outside our control.

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,135)