How do you enter a line break in a REST API POST
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2020 06:38 AM
How do you enter a line break in a REST API POST e.g. to the Incident table description field?
There are several suggestions but none work!
e.g. \n\r \\n\\r
Labels:
- Labels:
-
Incident Management
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2020 06:45 AM
Hi Andrew,
so you want to enter new line to incident short description when incident gets created?
this worked for me:
Request Body: {
"short_description":"test",
"description": "UserA\nCompany"
}
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader