Skip to content

Commit

Permalink
Fixed URL query string bug for both Automate and Manage queries
Browse files Browse the repository at this point in the history
  • Loading branch information
derpenstiltskin committed Oct 25, 2021
1 parent c659ed9 commit d5422d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CWApiRequest.pq
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let
#"Content-Type" = "application/json",
ClientID = "CWD_CLIENTID"
],
CWARelPath = CWAApiEndpoint & Uri.BuildQueryString(CWAQuery) & "&pagesize=1000&page=" & Number.ToText(CWAPageNumber),
CWARelPath = CWAApiEndpoint & "?" & Uri.BuildQueryString(CWAQuery) & "&pagesize=1000&page=" & Number.ToText(CWAPageNumber),
CWAApiRequestPage = Json.Document(Web.Contents("CWA_API_URL", [Headers = RequestHeaders, RelativePath = CWARelPath]))
in
CWAApiRequestPage,
Expand All @@ -56,7 +56,7 @@ let
#"Content-Type" = "application/json",
ClientID = "CWD_CLIENTID"
],
CWMRelPath = CWMApiEndpoint & Uri.BuildQueryString(CWMQuery) & "&pagesize=1000&page=" & Number.ToText(CWMPageNumber),
CWMRelPath = CWMApiEndpoint & "?" & Uri.BuildQueryString(CWMQuery) & "&pagesize=1000&page=" & Number.ToText(CWMPageNumber),
CWMApiRequestPage = Json.Document(Web.Contents("CWM_API_URL", [Headers = RequestHeaders, RelativePath = CWMRelPath]))
in
CWMApiRequestPage,
Expand Down

0 comments on commit d5422d3

Please sign in to comment.