Getting SharePoint List items with full history version?
Hi,
We do have a SharePoint list to manage Fleet inventory of asset: mainly their attribution (who own it) and their status (active, lost, broken, etc.).
We did activated the SharePoint Version Control and I would like to use this information to run histroical report overtime around such assets status and ownership.
Right now, the only solution I found is to eitheir take a snapshot of the full list on a regular basis into another datasource.
Is there anyway to get such history/version data directly avoiding wruting such separate datasource?
VersionsRelevantSharePointListName => Your SharePoint List Name
VersionsRelevantItemID => SharePoint list item ID
when you invoke this Function to an SharePoint list you get the table with all related versions for that item. This can be further expanded to get to the full set of columns from that list.
As I understand it, you need to hide away part of the API call's string from Power Query and append it during the run, so the code would look like this:
Web.Contents("<your-webpage>",[RelativePath = "<continuation of the API call>"])
I was able to pull in full version history and be able to set auto-refresh on the Service.
Thanks but I can't execute PS scrript right now due to my company policies.
In addition I also wanted to avoid data multipliciation: maybe SharePoint list may not be good for what I'm looking for and I may ave to swicth to a real DB model.
did you ever figure out how to retrieve the history for items in a SharePoint list so you could run historical reports on your data? I would be very interested to learn how you managed to get this done!
how can we get full version history of all items? I am trying to create report based on the no of days an item stayed in a particular status, any help will be appreciated.
Is there a way to limit the amount of version returned by adding a date range into the api code? If so, do you know what code to add to include a date range?