Forum Discussion
JSON API | Expression.Error: We cannot convert a value of type Record to type List.
bushead1979,
Could you please post the code in your Advanced Editor? What steps in Query Editor do you add when you get this error?
Regards,
Lydia
Being new to the query editor I can't figure out what I need to amend to get the source into a table with seperate columns.
let
Source = Json.Document(Web.Contents("https://url...")),
Table = Table.FromRows(Source)
in
Source
I have managed to get a single record but not the whole record set I'm assuming I need iterate through the records in a for loop or something?
- Phoenixke8 years agoFrequent Visitor
bushead1979: You're missing an array bracket in the example respons file that you posted.
Any chance you can post an actual response? (omitting any personal info of course). It should start with "{ "something" : [".
You should then try Json.Document(Web.Contents("https://url..."))[something]