Created
October 27, 2023 14:10
-
-
Save alexalvescrp/01c576728fada8d68c59e5d9e1b7f181 to your computer and use it in GitHub Desktop.
O que eu estou errando? API GraphQL + Power BI
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
let | |
Source = Json.Document( | |
Web.Contents("https://api.prevision.com.br/graphql", | |
[ | |
Headers=[ | |
Method="POST", | |
Accept="application/json", | |
UserAuthorization=tokenPrevision | |
], | |
Content=Text.ToBinary( | |
"query=query SCurve($projectId: int!, $dashboardWeightId: int) { | |
me { | |
project(id: $projectId) { | |
dashboard(id: $dashboardWeightId) { | |
sCurve { | |
base { | |
points { | |
x | |
y | |
} | |
} | |
expected { | |
points { | |
x | |
y | |
} | |
} | |
realized { | |
points { | |
x | |
y | |
} | |
} | |
} | |
} | |
} | |
} | |
}", | |
"($projectId:" & pObras_Prevision&")" | |
) | |
] | |
) | |
) | |
in | |
Source |
Author
alexalvescrp
commented
Oct 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment