5
Views
0
Comments
Consuming an SAP OData API
Question

I am consuming an SAP OData API in OutSystems.

The API URL contains OData parameters using "$", such as:

$filter

However, OutSystems automatically encodes "$" to:

%24

The problem is that this API does not accept the encoded value %24.The request only works when the URL is sent with the literal "$" character.

Expected:

...?$filter=Lifnr eq 'xxxxxxx'

Current request generated by OutSystems:

...?%24filter=Lifnr eq 'xxxxxxx'

I already followed the official OutSystems recommendation to change the URL inside OnBeforeRequest. 

Inside OnBeforeRequest, the URL appears correctly with "$filter". However, after the callback execution, it seems OutSystems encodes the URL again before sending the request.

https://success.outsystems.com/documentation/how_to_guides/integrations/how_to_consume_an_sap_odata_service_in_outsystems/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.