Hi All,
I have 10 image controls in my form, each of which are connected to a flow that saves the image that is added by a user into the attachments of the connected Sharepoint List item.
These attachments are saved as Image001.jpg, Image002.jpg, etc.
This is set up this way as it was imperative that a) the images are placed into the attachment area of a list item, and b) each attachment had to be named with exactly this naming convention for future flow runs that occur later on in our workflow.
All of this works perfectly fine.
The issue I'm having is displaying the correct thumbnails after a user saves their form, exits, and comes back to edit the form later on.
Previously, I was using a formula a "Last(FirstN" formula, and picking an image count this way, however this would erroneously display the image control thumbnail above if no image was uploaded into it. (If a user uploaded an image into Image Control 1, this same thumbnail would be repeated in Image Control 2 if no image was uploaded into Image control 2).
This obviously caused a lot of confusion for users.
So next I tried a direct url link to the appropriate image "https://*************************/Lists/****/Attachments/"& ThisItem.ID &"/Image003.jpg"
This worked fine as the image names were always the same, and I could dynamically point the app to the Item ID of the selected list item.
On my PC, using a Chrome Web Browser, this method still works perfectly fine.
On other users PC's using a Chrome or Edge Browser, the image thumbnails do not display at all.
I've tried collecting the AbsoluteUri of attachments when a given form is loaded, but I can't work out a way to then display them in an image control.
Has anyone figured out a fully functioning way of displaying attachments in image controls?
For reference, here are images of the respective controls and code snippets of the formulas.
The Uploaded Image Control 'Image' Property for Image001.jpg:
If(IsBlank(AddMediaButton2.Media), "https://northeastmedia.sharepoint.com/sites/NEMNewsroom2/Lists/Acta/Attachments/"& ThisItem.ID &"/Image001.jpg", AddMediaButton2.Media)
(Substitute Image002.jpg, Image003.jpg, etc for each subsequent image control).
An example of the Image controls. Using my computer - the images are displaying correctly.
Example above of the correct images displaying in the respective controls.
Example of the image controls not working
Example above of the image controls for the same list item not working on another user's PC.
The corresponding list item in Sharepoint
The corresponding list item in Sharepoint.
As I say, the images are always called Image001.jpg - > Image010.jpg for every list item.
I'm thinking there must be an easy way to do this, but I just can't get it working right.
Cheers in advance for any advice!
Chris,