Azure application proxy - 404 error making http get on odata endpoint
Hello ,
I´ve published my legacy MSCRM App thru Azure Application proxy and the OOTB features works as expected ( although extremely slow).
My MSCRM App has a custom script that makes requests to the MSCRM OData endpoint searching some entities ( mainly contact).
when this scripts try to make the get request thru the Azure App proxy, i get a 404 error.
Found this discussion from a while ago on this forum and my get requests to the oData Endpoint has the same characteristics. - it contains parenthesis used to control the precedence of the queries criteria.
My query has something like:
http get to:
https://<SERVER>/ORGNAME/XRMServices/2011/OrganizationData.svc/ContactSet?$select=ContactId,FullName&$filter= StateCode/Value eq 0 and (substringof('xxx',FullName) or substringof('yyy',FullName) or substringof('zzz',FullName))
things to note here:
- <SERVER> is the correct URL ( the web app proxy URL).
- the parenthesis are necessary in those queries ( there is more filters in place here)
- this same http get works correctly when issued directly to the MSCRM app
The thread above states that
"The parenthesis in the URL are considered reserved characters and there is an issue with Azure Application Proxy where these characters may be improperly encoded before passing to the back-end web resource."
i was not able to find anything related to this in the documentation.
tried to URL encode the parenthesis on my query but no dice .
Thank you