Skip to content

Commit

Permalink
PROBLEM-2833 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
MickStanciu authored Dec 7, 2023
1 parent 813648b commit e77982a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SafetyCulture.pq
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,14 @@ CreateNavTable = (group as text) as table =>

GetEntity = (url as text, entity as text, optional query as record) as table =>
let
now = DateTimeZone.ToText(DateTimeZone.UtcNow(), "yyyy-MM-ddTHH:mm:ss"),
withQuery =
if (query <> null)
then entity & "?" & Uri.BuildQueryString(query)
else if (query = null and entity = "training-course-progress")
then entity & "?completion_status=COMPLETION_STATUS_COMPLETED&limit=100"
else if (query = null and entity = "inspection_items")
then entity & "?modified_before="&now&"Z"
else entity,

fullUrl = Uri.Combine(url, withQuery),
Expand Down

0 comments on commit e77982a

Please sign in to comment.