Forum Discussion
Excel Power Query Refresh fails for a shared file owner on SharePoint using Office 365 Business Prem
SAI-Indy , how exactly do you reference files on SPO? Correct query is like
Sharepoint.Files(<root site URL>)
Filtrer file by name
Get binary content
Get object from file (table or sheet)
- SAI-IndyApr 25, 2019Copper Contributor
Here' the general flow:
1a) SharePoint.Files("https://mydomain.sharepoint.com/sites/Commissions/", [ApiVersion = "Auto"]))
or
1b) SharePoint.Files("https://mydomain.sharepoint.com/sites/Commissions/myfilename.xlsx")
2) Filter files by name (for option 1a above)
3) GetExcelObjects (filter by kind=sheets)
4) Expand tables
5) ...manipulate data
- SergeiBaklanApr 26, 2019Diamond Contributor
- martingarnerJul 30, 2019Copper Contributor
Is there a generalised step-by-step guide for how to share power query enabled Excel files, without hitting this error, please. I have the same error (with two files and do not understand a) why it's there or b) why some users can refresh, while others cannot or c) what to do to fix it. Any help gratefully received, please.
Thanks,