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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor connection stopped working

I had a working connection using api, but today it stopped working, apparently due to changes in api documentation.
We've managed to change the code and it works perfectly in developers tool:

But in power query the same thing produces an error. Here's the code:

Json.Document(Web.Contents("" & "v2", [Headers=[Method="POST", #"Content-Type"="application/json", Authorization="Api Token"], Content=Text.ToBinary("{""query"": ""query { boards(ids: [581141334]) { items_page {items { name group{ id } column_values (ids: [name]) { id value } } } } }""}")]))



I've tried qutation marks and double quotation marks, but that only leads to another error

TomU_2-1707336621995.png is accessible with different code, but we need columns and names.

Community Support
Community Support

Hi @TomU ,

Please try this code:

    url = "",
    body = "{""query"": ""query { boards(ids: [581141334]) { items { name group { id } column_values { id value } } } }""}",
    apiToken = "your_api_token_here", // Replace with your actual API token
    headers = [
        #"Authorization"="Bearer " & apiToken
    content = Text.ToBinary(body),
    Source = Json.Document(Web.Contents(url, [Headers=headers, Content=content]))

And if the API has been updated, there may be changes to the endpoint, required headers, or the structure of the requests and responses.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-junyant-msft. Thanks for advise. 
The code works, but we still have to to limit the number of columns, as this is a pertty large board.
"column_values (ids: [name])" doesn't worsk and just says that
"column_values has invalid value ([Name]).Expected type [String!]"
I tried [""name""] too.

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors