Send Line break in description field via json

Cindy Sim
Tera Expert

I have SNOW to SNOW integration. I am creating incident from a record producer. Everything else is working except I am sending variables to description field in incidents. I am not able to send line breaks after each variable. I tried \n and also using<br>. It's not creating line break. Could anyone suggest how to achieve send  linebreaks from JSON payload?

5 REPLIES 5

jcmings
Mega Sage

I believe you need to escape your \ character, meaning you would use \\n (double slash) instead of \n

This is working on separate fields but creating line break in same field is not working.

Does the field you are trying to write to accept line breaks? For example, the Short Description field does not accept multiple lines. 

I am using description field which is string field. I am able to create line break in Json payload but when I do that I am not able to send the payload because of JSON error. Any suggestion on this?