Get generated request url in REST API.

Get generated request url in REST API.


Hi Guys,

How I can get the generated URL in my REST API?

I need to check if I have a correct request url because I'm using ODATA query to filter a supplier by its Name.

My url is something like this:

/SupplierCategory/Get?$skip={skip}&$top={top}&$orderby={orderby}&apikey={apikey}&companyid={CompanyId}&$filter=Name eq '{SupplierName}'

Hi Jovvy,

I'm assuming that you are using "Consume REST API".

For that, you have some ways to understand what you are sending in request.

  1. Add a "OnBeforeRequest" callback with a breakpoint and check what will be your URL
  2. Turn on tracing for your REST API and check the request and payload in Service Center
  3. Use an external tool (like fiddler or wireshark or something related) to check the request and payload.

Let us know if it helped.

Best regards.

Hi JV,

I'm curious to know if you found a solution to your problem?
I have similar issues when consuming OData, every time i come across an expressions with spaces Example: 

$filter=Name eq '{SupplierName}'

Somehow Outsystems has issues handling these expression. 

Simillar call using Postman shows that the value part has been Url encoded. Works in Postman but not in Outsystems.