Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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?

 

 

4 Replies