nchrk
3 years agoNew Contributor II
Remove the character "\n" and empty spaces from string
i trying to remove the “\n” character along with empty spaces from string thru mapper expression, but it’s not working.
- input value JsonStr := [\n “AC”\n]
expected output := [“AC”] - input value JsonStr := [\n “AC”,\n “BD”,\n “DE” \n]
expected output := [“AC”,“BD”,“DE”]
i tried with JsonStr.toString().replaceAll(/\n/,“”). but it’s not working
I found out it is possible to do this with a REST OAuth2 Account:
Select the 'Send Client Date as Basic Auth Header' check box
Select the 'Header authenticated' check box