cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping issue in PI

Former Member
0 Kudos

Hi Experts,

I have an input field, which i need to be validated for three different conditions.

1. If the first input value contains any string 'B*" then my result should be "N20" ( a constant)

or

2. If the first input value contains any string 'M*" then my result should be "M20" ( a constant)

otherwise the value should be defaulted to 'M30".

how do i map this in message mapping,

Kindly help in this regard.

thanks

Nandu

Accepted Solutions (0)

Answers (3)

Answers (3)

anand_shankar10
Active Participant
0 Kudos

Hi Nandu,

This can be achieved by susing standard functions in PI.

Use If-then-Else conidtions and use the text function "startsWith".

This will give you your desired output.

Regards

Anand

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi

create a UDF, in your code use regex (regular expressions) to validate your data.

regards

Naser