Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Dynamic tabels from API

Hello,

 

 

 

shared Helloworld.Contents = (optional message as text) =>
    let
        endpoint = "My link to the API",
        directive= "A",
        cache    = "false",
        headers  = Record.FromList({"Headers"}),
        payload  = Json.Document(Web.Contents(endpoint, headers)),
    value = payload[value],
    #"Converted to Table" = Table.FromList(value, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", headers)
    in
        #"Expanded Column1"; 

 

 

When compile this, I get this error:

 

1 Arguments were passed to a function which expects 2. What can it be?

 

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

May be the error come from Record.FromList

vyalanwumsft_1-1634865901067.png

For example ,

= Record.FromList({1, 2}, {"a", "b"})

https://social.technet.microsoft.com/Forums/office/en-US/1fd26cde-2d33-4f36-974e-e5c74b9f0c37/recordfromlist-undocumentedwrong-how-to-use-it?forum=powerquery

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

Is your problem solved?? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

May be the error come from Record.FromList

vyalanwumsft_1-1634865901067.png

For example ,

= Record.FromList({1, 2}, {"a", "b"})

https://social.technet.microsoft.com/Forums/office/en-US/1fd26cde-2d33-4f36-974e-e5c74b9f0c37/recordfromlist-undocumentedwrong-how-to-use-it?forum=powerquery

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , Is it showing the option to click here to see an error?

Any function with one argument is under doubt as of now

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

No, it doesn't show which function specifically has an error:(

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.