// One Salma table in Power BI. Paste into Power Query: Home > New Source > Blank Query > Advanced Editor. // Change the two values on the first lines. Credentials are not stored here: // Power BI asks for them the first time (Basic, user name "key", password = your Salma API key). let SalmaBase = "https://YOUR-SALMA-ADDRESS/data", TableName = "form_YOUR_FORM_KEY", // The address stays fixed and only RelativePath and Query change, so the Power BI service can refresh it. GetPage = (after as nullable text) => Json.Document(Web.Contents(SalmaBase, [ RelativePath = "v1/tables/" & TableName, Query = [format = "flat", limit = "200"] & (if after = null then [] else [after = after]) ])), Pages = List.Generate( () => GetPage(null), each _ <> null, each if _[has_more] then GetPage(_[next_watermark]) else null, each _[data] ), Rows = List.Combine(Pages), Result = Table.FromRecords(Rows, null, MissingField.UseNull) in Result