You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add multiple QueryStringParam through AddQueryStringParam, this all works great unless I start adding params with the same Key. When adding multiple params with the same Key it only adds the latest one. I assume this is because AddQueryStringParam uses a dictionary and only unique Keys are allowed?
I have no problem editing the code but I was wondering if somebody reported this already or if you are adding it to 4.0?
Eg. Assume I send a GET request where I want to filter and only pull three fields, the current server I use accepts the following:
'Specify unique item
Request.AddQuerystringParam "Number", "123"
Request.AddQuerystringParam "Name", "Test Name"
'Specify which columns to pull
Request.AddQuerystringParam "Field", "Number"
Request.AddQuerystringParam "Field", "Name"
Request.AddQuerystringParam "Field", "OriginalAmount"
`Output should be something like:
`url/products?Number=123&Name=Test+Name&Field=Number&Field=Name&Field=OriginalAmount
`Output is:
`url/products?Number=123&Name=Test+Name&Field=OriginalAmount
BTW, again great REST script - very excited for 4.0.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @ruudvh, hadn't thought of needing duplicate keys in querystring params so I'll change that to a Collection underneath (like Headers). I'll add it to the v4.0 tasks
Hi,
I am trying to add multiple QueryStringParam through
AddQueryStringParam
, this all works great unless I start adding params with the sameKey
. When adding multiple params with the sameKey
it only adds the latest one. I assume this is becauseAddQueryStringParam
uses a dictionary and only uniqueKeys
are allowed?I have no problem editing the code but I was wondering if somebody reported this already or if you are adding it to 4.0?
Eg. Assume I send a GET request where I want to filter and only pull three fields, the current server I use accepts the following:
BTW, again great REST script - very excited for 4.0.
Thanks!
The text was updated successfully, but these errors were encountered: