Sometimes, there is a requirement to add new line characters in a string in OIC Mapper. Use the below approach to handle this:
- By Entering the new line OIC Mapper Window
- 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:
Another example to add Horizontal Tab:
	
Use the ASCII Table given below to view all ASCII Codes.
Source: https://simple.wikipedia.org/
Comments
Post a Comment