Forked from yuhgto/outdated-monday-GraphQL-PowerBI.m
Created
October 20, 2022 02:17
-
-
Save thatdoogieguy/df2fd2603a3e565b51446e5ef5d7dd03 to your computer and use it in GitHub Desktop.
Loading GraphQL data (monday.com API v2) into PowerBI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Playing around with a PowerBI query to pull data from monday.com into PowerBI | |
// This can come in handy when building PowerBI reports that utilize GraphQL endpoints for loading data. | |
let | |
Source = Web.Contents( | |
"https://api.monday.com/v2", | |
[ | |
Headers=[ | |
#"Method"="POST", | |
#"Content-Type"="application/json", | |
#"Authorization"="<your_personal_token_here>" | |
], | |
// Notice the quote escaping here | |
Content=Text.ToBinary("{""query"": ""{ boards (ids: <your board ID here>) { items { name id column_values (ids:["<your column id here>"] { id title value } } } }""}") | |
] | |
), | |
#"JSON" = Json.Document(Source) | |
in | |
#"JSON" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment