Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

New line character in REST connector's CreateAccountJSON

jdoma
Regular Contributor
Regular Contributor

Hi Forum,

We are trying to display the text in multiple lines and trying the json as below(just altered to avoid lengthy message).

"httpParams": "{\"messages\": [{\"content\":\"Hi ${user.firstname} ${user.lastname},\\nYour network account has been created."}]}",

FYI, I have tried with combinations like \\n, \n, ${'\n'}, \r\n, \\r\\n, ${System.lineSeparator()} but same error.

The error is 

{"call1":{"message":"Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n

Could you please help me to fix the error.

 

1 REPLY 1

jdoma
Regular Contributor
Regular Contributor

The issue has been resolved. The solution is \\n is replaced with \\\\n.