I am using the following code :
I dont want listItemAllFields , i only want selected fields
url = await sp.web.getFileByServerRelativeUrl(relativeUrl).listItemAllFields.get().then((items => {
return (items.ServerRedirectedEmbedUrl);
}))
Hi @harshdamaniahd,
The same exactly approach as with any other OData modified endpoints; by using select and providing comma separated string with fields: .listItemAllFields.select('Id,Created').
Most helpful comment
Hi @harshdamaniahd,
The same exactly approach as with any other OData modified endpoints; by using
selectand providing comma separated string with fields:.listItemAllFields.select('Id,Created').