PictureThumbnailURL is null in the web part but return by the Search API #3746
Labels
bug
Something isn't working
Needs: Author Feedback
Awaiting response from the original poster of the issue.
Needs: Triage
Needs investigation and repro
Version used
Ex: 4.11.1
Describe the bug
Trying to get the image preview to work. Using PictureThumbnailURL in the PreviewImageUrl slot. However when I go to debug mode the value for is always NULL. When I search for the document using the REST API, I can see that there is a value for PictureThumbnailURL.
To Reproduce
Detailed steps to reproduce the behavior:
Add PictureThumbnailURL to selected properties in search results web part
change to debug mode
Notice that the value for the property is null
Search for the file via the rest API in a browser.
Property PictureThumbnailURL has a value
Expected behavior
The PictureThumbnailURL property should render a value in the search results web part
Screenshots
PNP Search Results - Thumbnail NULL
PNP Search Results - Thumbnail From REST API
**Desktop **
Browser: Microsoft edge
Additional context
Had a search call with Microsoft as the value returned via the search API for PictureThumbnailURL would give an access denied error when putting it in the browser. That is now rectified after doing a full crawl on the affected libraries.
The text was updated successfully, but these errors were encountered: