Forum Discussion
Anonymous
6 years agoNot applicable
Sharepoint online lists - new data everyday
I have a dataset where I am reporting on Operational Events over a 24 hour period. One of the data sources is customer contact data which is deleted automatically at 2am and then refreshed with new d...
- 6 years ago
Check your auto generated M Code. It probably looks like this:
let Source = SharePoint.Tables("https://xxx.sharepoint.com/teams/yyy", [ApiVersion = 15]), #"463db794-eb4d-45b4-8ad4-818c002c3811" = Source{[Id="463db794-eb4d-45b4-8ad4-818c002c3811"]}[Items], #"Renamed Columns" = Table.RenameColumns(#"463db794-eb4d-45b4-8ad4-818c002c3811",{{"ID", "ID.1"}}) in #"Renamed Columns"Change it to key off the name instead of the Id (hopefully the list name is constant?!)
let Source = SharePoint.Tables("https://xxx.sharepoint.com/teams/yyy", [ApiVersion = 15]), MyList = Source{[Title="My List Name"]}[Items], #"Renamed Columns" = Table.RenameColumns(MyList,{{"ID", "ID.1"}}) in #"Renamed Columns"
Greg_Deckler
Community Champion
6 years agoAnonymous - Are you saying that the entire list is deleted every day?
Anonymous
6 years agoNot applicable
More a total refresh everyday at 02:00 which clears the previous days data and refreshes with a new set of data, obviously the headers stay the same. I get a GUID error when I try a scheduled refresh as the GUID seems the change everyday.