How to add new line character in Oracle Integration Cloud (OIC) Mapper?

 


Sometimes, there is a requirement to add new line characters in a string in OIC Mapper. Use the below approach to handle this:

  1. By Entering the new line OIC Mapper Window
  2. By Using the ASCII Code in Mapper


By Entering the new line OIC Mapper Window

In this approach, we take example of a simple Integration which has one Query Parameter (Name), and it returns JSON Payload having one key (Message). 


In Mapper, we can use concat function to concatenate the string values and we can press Enter Key to add New Line in Using this in OIC Mapper:




By Using the ASCII Code in Mapper

In OIC Mapper, we can add any ASCII Character using the below convention:

&#<ASCII_CODE>;

For example, to add new line character use the below:

&#10;

Another example to add Horizontal Tab:

&#9;

Use the ASCII Table given below to view all ASCII Codes.








Source: https://simple.wikipedia.org/

Comments