Forum Discussion
glynwilks
4 years agoHelper I
Dynamic Date in Web Query
I am trying to do a POST request using the blank query editior. I need to include a body query within the source to specify the date in yyyy-mm-dd format. If I manually type the date i.e. 2022-05-22 ...
- 4 years ago
For body use this
body = "{""Dates"":"&""""&Date.ToText(Date.From(DateTime.FixedLocalNow()),"yyyy-MM-dd")&""""&"}",
Vijay_A_Verma
4 years agoMost Valuable Professional
For body use this
body = "{""Dates"":"&""""&Date.ToText(Date.From(DateTime.FixedLocalNow()),"yyyy-MM-dd")&""""&"}",- glynwilks4 years agoHelper I
Thank you very much Vijay. That worked a treat.