How to use query parameters withe trestclient using odata restservice

One Star

How to use query parameters withe trestclient using odata restservice

Hi,

 

I am consuming a rest webservice that uses ODATA queries. I use the TRestClient for this purpose.

With query parameter I would like to call the webservice.

The parameter looks like

Name         Value

$expand    "personalia($expand=*),homeAddress($expand=*),contactInformation($expand=*),contracts($expand=*)"

 

The input afte the "," is not seen bij the call of the webservice. So, only $expand    "personalia($expand=*)" works fine, but "personalia($expand=*),homeAddress($expand=*),contactInformation($expand=*),contracts($expand=*)" does not work.

 

Does anyone has an idea? Do i have to escape the "," with a "/" ?


Accepted Solutions
Highlighted
One Star

Re: How to use query parameters withe trestclient using odata restservice

found it: escape , with 2c%

 

"personalia($expand=*)%2ChomeAddress($expand=*)%2CcontactInformation($expand=*)%2Ccontracts($expand=*)"


All Replies
Highlighted
One Star

Re: How to use query parameters withe trestclient using odata restservice

found it: escape , with 2c%

 

"personalia($expand=*)%2ChomeAddress($expand=*)%2CcontactInformation($expand=*)%2Ccontracts($expand=*)"

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download