cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple line string output required using UDF in MM

0 Kudos

Hi All,

I am working on a scenario, where in I want the multiline string as output of UDF in message mapping. I cannot use the java mapping. Is it possible? And if yes, can you please guide me how can I achieve this.

Thanks,

Shilpi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shilpi,

Can you provide the output format how u required.

Thanks,

Satish.

0 Kudos

Hi Satish,

The format I require is like this,

 

<Target>

<Name>ABC
DEF
GHI
KLM</Name>
</Target>

Thanks,

Shilpi

Former Member
0 Kudos

Hello,

How the values are coming in source field?

suppose input value coming in the source field is like: abc,def,ghi

Then below UDF can be used:

return (var1.replaceAll(",","\n"));

and ur output will be:

<Name>ABC

DEF

GHI

KLM</Name>

Thanks

Amit Srivastava