How do we create and implement stubs in servicenow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2018 06:18 AM
How do we create and implement stubs in servicenow.
Please help.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2018 09:35 PM
This question is not clear.
Once you have more details, add them, until then I don't know if anyone can help with so little.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2018 11:39 PM
I want to Create API/ POST method in ServiceNow and expose such API to some external service XYZ.
I want to hardcode certain input parameters such as:
Order ID |
Technical order ID |
Task ID |
Object specification Type |
Object specification ID |
AND I want the output/response as below:
Output/Response as below,
Status (Hardcode as ‘Created’) |
Object instance Id (Hard coded as ‘Service007’) |
let me know if its clear now... n please help me with this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2018 07:35 PM
It sounds like you just want to make a pass-thru to a different system with modified things. That's great. Pretty straight forward with Scripted Rest APIs.
Have you tried to do any of this yet? Where are you getting stuck?