The CreatorCon Call for Content is officially open! Get started here.

How do we create and implement stubs in servicenow?

Shubhanshi2
Kilo Contributor

How do we create and implement stubs in servicenow.

Please help.

3 REPLIES 3

Jace Benson
Mega Sage

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.

Shubhanshi2
Kilo Contributor

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.

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?