Adding in the URL

1
Hi Team,  I have connected to SAP OData connector in mendix. In my microflow, I am using the GetEntry Activity of type SAP Odata Connector. In this, we have to input the Url. I need to pass some parameters to the URL, for eg. http://......./sap/opu/odata/sap/ODATA_SRV/ZLOGINSet(Username='SILICON'). I am not able to pass the ' in the URL. I have tried using %27 and &apos ; in place of the apostrophe.
asked
3 answers
0

Hi!

If you want to add a ‘ to a string, you have to add two single quotes.
So for this URL: http://......./sap/opu/odata/sap/ODATA_SRV/ZLOGINSet(Username='’SILICON’').

answered
1

You could try to use the urlEncode() function in the microflow where you create the URL.

answered
0

Try this:

'http://......./sap/opu/odata/sap/ODATA_SRV/ZLOGINSet(' +
'Username='+
'''' +
$Username +
'''' +
')'


$Username is a variable with a certain value, for example 'SILICON'

'http://......./sap/opu/odata/sap/ODATA_SRV/’ can be replaced by a constant.

answered