New Sep 19, 2024

how to get full version history of SharePoint list item from from begining

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View how to get full version history of SharePoint list item from from begining on stackoverflow.com

Additional environment details

i am working with spfx with react.i need full version history of SharePoint list item from begining. but pnp/js return version number 10.0 when history more then 50. please assist me for this issue.

export const getItemHistory = async (Id, LIST_NAME) => {
let queryParams = new GET_LIST_QUERY_PARAMS();
queryParams.selectProperties = ["*,Versions"];
queryParams.expandProperties = ["Versions"];

const assetResult = await getSPListItemById( LIST_NAME, queryParams.selectProperties, queryParams.expandProperties, Id );

return assetResult;

}

Scroll to top