Created
April 28, 2021 04:00
-
-
Save Mike-Honey/a9e1feab9283e4679056474cf24b6696 to your computer and use it in GitHub Desktop.
Get Version History From SharePoint List Items - Power Query
@Mike-Honey this is great. I found that changing the code to use the relative path and hard coding the base URL can be helpful when deploying to the service. Thanks for the great function!
Source = Xml.Tables(Web.Contents(
HardcodedVersionsRelevantSharePointLocation
[RelativePath=
"/_api/web/Lists/getbytitle('" &
VersionsRelevantSharePointListName &
"')/items(" &
Text.From(VersionsRelevantItemID) &
")/versions"]
))
@superbobstar , If I'm doing this it is failing to validate my Web dataset on Power BI Service. Please find the screen shot attached.
Please know that it is working fine in Power BI Desktop but not on Power BI Service.
Any help will be highly appreciated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From: Power BI Community discussion:
https://community.powerbi.com/t5/Desktop/Getting-SharePoint-List-items-with-full-history-version/m-p/776458/highlight/true#M374019
note: consider posts below highlighted post on use and trouble-shooting.