I am facing one issue during integration between two service now instance using rest import set api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2022 07:12 AM
Hi Guys,
I am facing one issue during integration between two service now instance using rest import set api . I am trying rest outbound to create record from one snow to another snow instance using rest import set api and I able to create successfully but don't able to receive any response with target record id and sys_id. In table level api I got the response as expected. Is there any difference to get response in import set api? Please assist.
abhiek
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2022 12:57 AM
Hi,
I think that is the expected behavior and is working correctly.
If you are trying to hit a TABLE level API , you will be getting response configured OOB. But what I am understanding from your use case is you have a custom endpoint and through which you are trying to create record by hitting that API in target instance.
So in order to send a response back to your source system you need to configure it in your Scripted Rest API so that when a record gets created Scripted Rest API send it back to your source instance as shown below:
As an example you may refer to below blog where you can learn how to construct a Response Object and then send it back to source:
https://snprotips.com/blog/2016/7/15/scripted-rest-apis-in-servicenow-how-to-retrieve-catalog-item-variables
Example screenshot attached below to look the way response is getting sent:
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2022 10:13 AM
you can created one scripted rest api in another instance and get that url
and use that url as end point for your instance
you can modify request and response body as your own requirnment