Skip to content

Instantly share code, notes, and snippets.

@alexalvescrp
Created October 27, 2023 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexalvescrp/01c576728fada8d68c59e5d9e1b7f181 to your computer and use it in GitHub Desktop.
Save alexalvescrp/01c576728fada8d68c59e5d9e1b7f181 to your computer and use it in GitHub Desktop.
O que eu estou errando? API GraphQL + Power BI
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
@alexalvescrp
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment