Forum Discussion

jitpbi's avatar
jitpbi
Post Patron
5 years ago
Solved

Dynamic values in paramater

Hi,

 

I am using the below paramters to pass in the URL to get the data from a web source which based on the start date and end date:

 

 

the below is from Advance Editor:

 

let
Source = Json.Document(Web.Contents("http://175.20.9.16:41000/PS/v1/ABC/Device/Meter?start_time=" & DeviceSD & "&end_time=" & DeviceED))

in

Source

 

I can successfully get the data for these paramaters (hard coded date), Now my requirement is to make these current values dynamic. The current value for the parameters "DeviceED" should be current datetime (like now()) and "DeviceSD" should be 3 days back datetime (like now()-3) rather than passing a hard coded datetime values.

 

Please suggest how to achieve this.

 

StartDate

EndDate

13 Replies