- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2018 05:18 AM
Code Written in Scripted REST Resource
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
return 'xyz';
})(request, response);
response in web browser in Xml
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2018 05:57 AM
anyway if you really need to get the result on browser then pass that url as end point in rest message
you need to create rest message and pass the url in endpoint and it will show you the JSON
attaching the thread below will help you.
https://community.servicenow.com/community?id=community_blog&sys_id=209ceae1dbd0dbc01dcaf3231f961933
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2018 05:25 AM
that will be useful in Rest API Explorer but I need it in Common browser to Test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2018 05:31 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2018 05:40 AM
in browser it will show the xml.
you can use the link below for the test in background script as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2018 05:42 AM
Hi Ramesh,
You can use postman tool an extension for chrome to test your scripted rest api. if you give accept as application/json it will return response in json format
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
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
10-20-2018 05:44 AM