Skip to main content

Hi,

I have created a function in my integration projection.

I have one parameter in this function of datatype number.

 

To trigger this function’s endpoint, I have to pass the parameter like this -

https://host/int/ifsapplications/projection/v1/IntegrationService.svc/MyFunction(Param=125)

 

But I don’t want to pass the parameter like that, I want to pass query string and fetch the value of each key/value pair of the query string.

 

Since, OData does support query string in Service Operations,

https://www.odata.org/documentation/odata-version-2-0/uri-conventions/#CustomerQueryOptions

 

I don’t know how to do this in IFS?

 

So, I want to trigger the endpoint like this -

https://host/int/ifsapplications/projection/v1/IntegrationService.svc/MyFunction?Param=125

 

Thanks in advance,

Rohit.

Hi Rohit,

 

IFS OData Provider supports OData version 4.
The example you have provided is from OData version 2.

For OData version 4 URI conventions, please follow below link

https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_ParameterAliases

 

So your example should be corrected as below

https://host/int/ifsapplications/projection/v1/IntegrationService.svc/MyFunction(Param=@MyParamAlias)?@MyParamAlias=125

 

/Kasun


Thanks @kasun.kumarasinghe  for the correction.

 

I need the Custom Query Options https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_CustomQueryOptions

and not the Parameter Aliases.

 

But the question is kind of still same - how to support the Query Option for my function, and get the query option key value pair in my Projection or PLSVC file to handle it?

 

Regards,
Rohit


Reply