Forum Discussion
Change Data Source from Local Desktop to Sharepoint
- 7 years ago
Are you able to navigate to your Sharepoint/Teams site on a web browser using the following URL format?
https://YOURCOMPANYNAME.sharepoint.com/teams/YOURTEAMNAME
That would be the starting point to determine the correct URL and then you can determine the folder names/structure.
Hmmm, I am syncing via my personal Sharepoint/OneDrive directory (confusingly named, I know - in File Explorer, it's a OneDrive folder, but online it's a Sharepoint URL).
Let me check how it works via Teams Sharepoint and come back to you.
Okay, did some testing and this works -
Teams Sharepoint URL looks like this :-
https://YOURCOMPANYNAME.sharepoint.com/teams/YOURTEAMNAME
The subfolder and path-to-file would add the following:-
/Shared Documents/SubFolder1/Filename1.xlsx
The complete URL would be
https://YOURCOMPANYNAME.sharepoint.com/teams/YOURTEAMNAME/Shared Documents/SubFolder1/Filename1.xlsx
Query Editor code would look like this:
let
Source = Excel.Workbook(Web.Contents("https://YOURCOMPANYNAME.sharepoint.com/teams/YOURTEAMNAME/Shared Documents/SubFolder1/Filename1.xlsx"), null, true),
Teams_Table = Source{[Item="Teams",Kind="Table"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(Teams_Table,{{"TeamIndex", type text}, {"Team", type text} })
in
#"Changed Type"You can edit the query via Query Editor or edit in Data Source Settings replacing the C:/ path with the full URL path.
- Anonymous7 years agoNot applicable
So the below is the link from the Team sharepoint-
How do I simplify it in the baove format you mentioned.
The folder hierarchy which I can see is - FSS Dashboard --> Documents --> General --> FSS Dashboard Input Reports --> 1. CMSI --> Dispute Lost Points.xlsx
- DarrenLau7 years agoAdvocate I
Are you able to navigate to your Sharepoint/Teams site on a web browser using the following URL format?
https://YOURCOMPANYNAME.sharepoint.com/teams/YOURTEAMNAME
That would be the starting point to determine the correct URL and then you can determine the folder names/structure.