Invalid Namespace in Scripted REST service. REST API Explorer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2019 05:09 AM
I have created Scripted REST service using documentation available in the Service Demo website. But when i test using REST API Exporer. It shows "Invalid Namespace".. I don't know what i have missed here. Could anyone assist here please?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2019 05:31 AM
Hi Ashok,
Select the API namespace (from scripted REST service you created) in the Namespace field.
Regards,
Ajay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2019 07:11 AM
Hi Ajay,
Namespace has been already populated in the Scripted REST Service. But when test the Scripted REST web-service using REST API explorer,the namespace is not populated in the Namespace drop-down field.
Thanks and Regards,
V. Ashok

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2019 07:47 AM
Hi Ashok,
Have you created any resource record under the Resources tab? If not then create one and test.
Refer ServiceNow Scripted REST API Example 1 for more information.
Regards,
Ajay