Forum Discussion
Venkata_Kishore
Sep 06, 2022Copper Contributor
Read Documents versions.
Hi,
I am qureying a document library with a filter condition in PnP PowerShell. After that I am writing the below PnP code to get the version properties for each library item.
Get-PnPProperty -ClientObject $libitem -Property Versions
My question when ever I call the above command will it get the data by hitting the server or get the data from the $libitem (library item)
If it is hitting the server, can you please let me know if there is any way to get all the properties of the version for a library item without hitting the server.
Regards,
Kishore.
- kalpeshvaghelaSteel Contributor
It's not possible because ultimately "getting items from lists" and "getting versions of particular" are two different method / API.
Hope it will helpful to you and if so then Please mark my response as Best Response & Like to help others in this community