Hello!
I have a ticket system application where they can add a picture. This picture gets saved to my SharePoint list using this code:
Patch(
'Foto''s Manco App',
Defaults('Foto''s Manco App'),
{Title: DataCardValue12.Text & " " & DataCardValue24.Text,
ImageData: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")
}
)
It looks like this: https://gyazo.com/5c8b7dcb733b60d00e54b47038f592c2
I use: "AddMediaButton1.Media" to get the picture into the "UploadedImage1"
I then made a formula that would display the image but this does not seem to work anymore.
LookUp('Foto''s Manco App', Title= DataCardValue12.Text & " " & DataCardValue24.Text, ImageData)
I used this formula instead of "AddMediaButton1.Media", this code would check if there is a picture in the database, if there is not, get the picture using "AddMediaButton1.Media"
Code:
If(LookUp('Foto''s Manco App', Title= DataCardValue12.Text & " " & DataCardValue24.Text, ImageData)= "", AddMediaButton1.Media, LookUp('Foto''s Manco App', Title= DataCardValue12.Text & " " & DataCardValue24.Text, ImageData))
How could I do this?