I am not able retrieve image column from SharePoint list in my solution using sp-pnp-js
.
Try below code inside forEach:
let imageUrl = item.Picture.Url
OR
let imageUrl = item["Picture"].Url
Then pass this image URL inside src
attribute of img
tag.
-
-
Are you able to retrieve and use image URL using above code? You can get date column using
let dateColValue = item.InternalNameOfDateCol
ORlet dateColValue = item["InternalNameOfDateCol"]
. make sure you are using correct internal names of your fields. – Ganesh Sanap Aug 6 '20 at 16:17
This worked for me:
JSON.parse(item.ImageColumName).serverRelativeUrl
BUT I was using CAML query to retrieve items.