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=*)"

View solution in original post


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=*)"

View solution in original post

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog