Skip to Content

Insert a Value from Request to Response in HCI

Hi HCI Experts,

I'm trying to build a scenario in HCI that would insert a value from a request message to a response message. In PI, this can be achieved using GetPayloadValueBean and PutPayloadValueBean. I'm looking into Content Modifier, Externalized Parameters or Variable which are all standard message transformers/objects in HCI. However, I'm getting no luck so far when trying to deploy the iFlow.

So far I've tried using the Write Variables. Here's my iFlow:

It's not working. It's either the Variable is not working / getting saved or I messed up with the Content Modifier. How do you fill up the message in the Body tab of the Content Modifier? The example in the guide is too simple. What if we need to assign the Variable's value in an existing field of a message payload such as my case?

What I did so far is copy pasted the whole message payload (this is the actual response message of the 1st Request-Reply from COD) and assigned the placeholder of the variable in one of the fields.

Has anyone ever done this scenario with success?

Again, appreciate any inputs.

Thanks in advance.


Capture3.PNG (44.2 kB)
Capture4.PNG (25.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 22, 2016 at 06:39 AM

    Hello Mark,

    Instead of Write variable you can use Content Modifier and save the value in Property like below.

    In the second Content modifier call the value by adding  ${property.Prop_SenderTechnicalID}.

    Reason for using Property is ,property will be retained after External Call[ RequestReply ], where as value stored in Header will get erased.


    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded