In this post, we will look into how to add a sample image when the user has no image uploaded
I have added a USER entity on the item’s property of the gallery.
On the image property of the gallery, I have added the below code.
Entity Image is the name of the user’s image in CDS. The below code explains that if the entity image is blank for each item in the gallery then add a sample image instead
If(IsBlank(ThisItem.’Entity Image’),SampleImage)