Forum Discussion
jdibala
5 years agoFrequent Visitor
Web.Contents with complex Query parameter names
Hi All I've got a REST API which allows filter as a parameter. Everything works fine when I concat URL with parameters and variables in one string. Source = Json.Document(Web.Contents("https://dat...
lbendlin
Super User
5 years agomaybe it is just a typo? Try this version:
Source = Json.Document(Web.Contents("https://datasource.com",
[
RelativePath="ItemHistory",
Query=
[
filter(HistoryDate;GREATEREQUALS)=from_dt,
filter(HistoryDate;LESS)=to_dt
]
]))
But then I found this
This may or may not impact you.
jdibala
5 years agoFrequent Visitor
When I remove brackets and semicolon it accepts the parameter name
I need some kind of escaping