Started working on SPFx and would like to develop an Image Rotator. As a first step, I wanted to get all the images and respective properties using PnP JS and used the following call and got the response:
return sp.web.lists.getByTitle('RotatorImages').select("Title", "Id", "TargetURL", "FileRef").items.get();
As you can see above, I'm not able to locate the FileRef property and when I use conventional SharePoint REST API call, I'm able to get the property as shown below in the JSON Response.
JSON Response****************** <m:properties>
<d:Id m:type="Edm.Int32">Item ID: 2</d:Id>
<d:Title>Title: New Public Website Announcement</d:Title>
<d:TargetURL>Target URL: https://www.example.com/</d:TargetURL>
<d:FileRef>FileRef: /sites/dev/suhas/modernexperience/RotatorImages/New Public Web Site Announcement.png</d:FileRef>
</m:properties>
Can someone please provide direction on how to get FileRef property using PnP JS from a Picture Library in SharePoint Online.