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.

Hi all,

I'm curious too. I'm stuck with the same problem as Robin Kouwen describes.


Postman gives me a working result, but OutSystems is somehow modifying the request link causing that it's not working anymore. In integration studio I can see that OutSystems sent the following GET request:

<link>/C_ObjPgMaintOrderOperation?%24filter=400041 HTTP/1.1

As you can see this is not the full request, because "MaintenanceOrder+eq+''" is missing. I think that's why we get this error:

<?xml version="1.0" encoding="UTF-8" ?>
<value>Invalid type for '$filter' system query option. Expected type is 'Edm.Boolean'</value>

I hope someone is able to help us.