cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
CraigSchulz Regular Visitor
Regular Visitor

Expand Column Containing list of Records from API Call

First, I know there are similar threads, but I did not see any just like this. Following an API call I have this:

Candidates API call.PNG

 

What command or function should I use in order to return a table where the records have been expanded to include all the fields in a record? If I click on list, I get the following:

CandidatesTable.PNG

 

I attenpted to us Table.ExpandRecordColumn but ended up with an error along the line of "Type Error - could not convert type list to type table.

 

What should I use?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Expand Column Containing list of Records from API Call

The argument would be the list within the 'object' field since it contains a list of records  @CraigSchulz

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

4 REPLIES 4
Super User
Super User

Re: Expand Column Containing list of Records from API Call

@CraigSchulz

 

From what I understand, you would use Table.FromRecords function in order to convert a list of records into a table

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

CraigSchulz Regular Visitor
Regular Visitor

Re: Expand Column Containing list of Records from API Call

Thanks, that seems right. I'm trying it, but what is the argument that I should pass to Table.FromRecords(<records as list>)? The Syntax help in Microsoft Docs isn't very helpful.

Super User
Super User

Re: Expand Column Containing list of Records from API Call

The argument would be the list within the 'object' field since it contains a list of records  @CraigSchulz

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

CraigSchulz Regular Visitor
Regular Visitor

Re: Expand Column Containing list of Records from API Call

Thanks! That worked great, and so much simpler than what I had been trying.