Skip to main content
Question

Integration Projection Query Parameter

  • June 10, 2024
  • 6 replies
  • 144 views

Forum|alt.badge.img+7

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.

6 replies

Forum|alt.badge.img+1

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


Forum|alt.badge.img+7
  • Author
  • Sidekick (Partner)
  • June 14, 2024

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


PhillBronson
Hero (Customer)
Forum|alt.badge.img+11
  • Hero (Customer)
  • June 16, 2025

@Rohit were you able to resolve this issue? If so, what was your solution?


Forum|alt.badge.img+7
  • Author
  • Sidekick (Partner)
  • June 16, 2025

@PhillBronson No, I could not find the solution. But I think it can be possible by implementing the function/action in java.


PhillBronson
Hero (Customer)
Forum|alt.badge.img+11
  • Hero (Customer)
  • June 16, 2025

@Rohit thanks,

Do partners have access to better documentation?

Or are we all working from the same tottery  techdocs and devstudioreference?


Forum|alt.badge.img+7
  • Author
  • Sidekick (Partner)
  • June 17, 2025

@PhillBronson Unfortunately, Partners also use the same documentations. Probably those are the best resources provided by IFS so far.