Forum Discussion
Dynamically Change date range of web source (api link)
- 3 years ago
AI14You need to include to and from in double quotes .... & "from=" & DateParameter & "to=" & DateParameter & ....
I meant i done this also and still not pulling data.
usually date range is "form=2022-11-20&" "to=2022-11-20&"
= Json.Document(Web.Contents("https://www.findmyshift.co.uk/api/1.4/reports/hours?" & "apiKey=xxxxx&" & "teamId=y22t0l5t4i&" & from=DateParameter & to=DateParameter & "timesheetData=yes&" & "additional-columns=staff.jobtitle&" & "additional-columns=staff.department"))
- AntrikshSharma3 years agoCommunity Champion
AI14You need to include to and from in double quotes .... & "from=" & DateParameter & "to=" & DateParameter & ....
- AI143 years agoHelper III
= Json.Document(Web.Contents("https://www.findmyshift.co.uk/api/1.4/reports/hours?" & "apiKey=xxxxx&" & "teamId=y22t0l5t4i&" & "from=" & DateParameter & "to=" & DateParameter & "timesheetData=yes&" & "additional-columns=staff.jobtitle&" & "additional-columns=staff.department"))
not working, i think its because its creating additional line in code when the date should be after the from= and to=