- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 01:30 AM
Using the REST API Explorer (Post), at the end, I would like a incident.description on 3 lines:
Description=
“Line 1
Line 2
Line 3”
contrary to certain speeches, characters ‘\r’ or ‘%0D%0A’ do not generate newlines…
do you know a way to generate these 3 lines of description?
Thank's. Cordialy .RV.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 01:32 AM
Hi,
this worked for me in past: using \n
Request Body: {
"short_description":"test",
"description": "UserA\nCompany"
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 01:32 AM
Hi,
this worked for me in past: using \n
Request Body: {
"short_description":"test",
"description": "UserA\nCompany"
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 01:43 AM
Yes! it works... Many thanks Ankur.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2021 02:24 AM
Glad to help.
Please mark response helpful as well.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 06:24 AM
But Its not working for me
this is the part of response for post rest api
"short_description":"UserA\nCompany"
please help