ServiceNow Things to Know 29: Pass new line and special characters in REST API Body
Import
·
Dec 17, 2023
·
article
var r = new RESTMessage('TestIncidents', 'post');r.setStringParameter("description", jsonEncode(current.description + ''));
var responser = r.execute();
If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL
Best Regards,
Prashant Kumar (LearnIT)
YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant
Blog LearnIT: https://medium.com/@LearnITbyPrashant
Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/
ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635
View original source
https://www.servicenow.com/community/developer-blog/servicenow-things-to-know-29-pass-new-line-and-special/ba-p/2765127