Skip to Content
avatar image
Former Member

how to set dynamic query in http sender channel and need to read query values in iflow in HCI

Hi Folks,

I want to call the http sender adapter with dynamic query values as below in which caseNumber is dynamic. will send by soapui asGET request

https://XXXXX-iflmap.hcisbp.us2.hana.ondemand.com:443

with resource as /http//casereadwithhttp?caseNumbers=1234

I want to read that value from input , plz tell me how to read that.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 27, 2017 at 08:20 AM

    Hello ,

    I have tried the same and I am able to get both custom header and dynamic one which you have mentioned.Below might help you

    Screenshot from POSTMAN:

    Run time Configuration:

    Sender Channel Configuration:

    Content Modifier Configuration:

    Output:

    <KeyfromURL>InputValue=1234</KeyfromURL>
    <CustomHeader>Test_SRI</CustomHeader>

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 26, 2017 at 06:01 PM

    Hello,

    Please refer below SAP HELP which provides more insight about HTTP adapter.

    HTTP Adapter Help

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sri,

      Thanks for Response..

      But i have already gone through this link but stuck in reading the below headers.

      I am not sure they are coming or not.... can you please tell me how to reads these header

      CamelHttpQuery

  • Apr 26, 2017 at 06:17 PM

    Hello ,

    I think you can follow below to get the same.

    1) Goto Runtime Configuration and add CamelHttpQuery in Allowed Headers.

    2) Write a script or use content modifier the get the header value.[ ${header.CamelHttpQuery} will return the value ]

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I tried this but no luck :(

      Even it is not passing any custom headers also which i try to send in HeaderFields also

      Is there any other setting also where we can enable this headers to enter in HCI

      AS i can see the log of remove all headers

      headerlog.jpg

      headerlog.jpg (25.0 kB)