Forum Discussion
REST api request in Power Query more than 1000 records
- 4 years ago
Please see this video for a good approach to do this.
Power BI - Tales From The Front - REST APIs - YouTube
Pat
Please see this video for a good approach to do this.
Power BI - Tales From The Front - REST APIs - YouTube
Pat
- julhelp4 years agoHelper I
Thanks this was the video i searched for hours 🙂
My next problem is, that i am getting my data but as record. So there is an error massage saying:
Expression.Error: We cannot apply operator & to types Record and Text.
Details:
Operator=&
Left=[Record]
Right=&limit=1000&offset=so i dont know how du convert the [Record] in my Web.Contents to text.
this is my changed code so far:
and this my whole code:
- mahoneypat4 years agoMicrosoft Employee
That error is because your are combining the Headers record with the "&limit= ..." text. You need to provide the info in that record in the same way as the limit and offset.
...?x-P4t-Auth-User=" & Username & "&x-P4t=" & AuthToken & "&limit= ...
Alternatively, you can provide the limit and offset in the first term of Web.Contents
Web.Contents(BaseUrl & "/" & tabellaname & "limit=1000&offset=" & [Column1], ...)
Pat
- julhelp4 years agoHelper I
thanks i think i did it right and that helped:
new problem:
Formula.Firewall: Query 'Test (2)' (step 'Gefilterte Zeilen') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.
I tried this but still dont works: https://community.powerbi.com/t5/Desktop/Formula-Firewall-Query-references-other-queries-so-it-may-not/m-p/18637#M5539
But i also dont know if i did this right:
I have chosen the line in yellow to "outsource" it.