cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the message ID generated by the PI system during message mapping

Former Member
0 Kudos

Hi All,

I have a file to file scenario, where during the mapping, I want to map and send the Message ID generated by PI.

Can anyone please help me with this?

Kind regards,

Joe

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor

this is a very common requirement.

do go thru the thread to help you. You will have to use dynamic configuration in this case.

Answers (1)

Answers (1)

former_member463616
Contributor
0 Kudos

Hi,

You have write UDF for this.

Please see the below code .

java.util.Map map = container.getTransformationParameters();

String MesID = (String)map.get(StreamTransformationConstants.MESSAGE_ID);

return MesID;

Hope this helps to you.

Regards,

P.Rajesh

0 Kudos

As per my observation this code is giving something in response but it is not the correct message id.