How does Scripted REST API PATCH Work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi,
Im currently implementing an integration between my instances but im currently lost in the scripted rest api within PUT and PATCH resource.
the error response always is this in PATCH
REST Msg Outbound - RESTMessageClient : Error executing REST request: Invalid uri 'https://dev204xxx.service-now.com/api/18xxx7x/ebonding_inbound_api/update_incident/{sys_id}': escaped absolute path not valid: Invalid uri 'https://dev204xxx.service-now.com/api/18xxx7x/ebonding_inbound_api/update_incident/{sys_id}': escaped absolute path not valid: no thrown error
but my POST resource it succeeded on my end without an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@Ankur Bawiskar
tried that but undefined when json request i used
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
20 hours ago
share what request body you are sending and how you are grabbing it?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
So I don't think the structure in explorer will work (it will need the ${sys_id} then the target URL from the source will look like this ..../update_incident/12342sys1232id12312312 whatever the sys_id of the inc is), but we'll get there. Can you provide how you're encoding the data in the source instance?
It looks like you've got the screen captures for the inbound configuration but we'll need to know what you're trying to send to make sure the parameters being passed are being done correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
6 hours ago
FYI heres a video someone's made with a similar intent as to what you're working on:
https://www.youtube.com/watch?v=35I_1_V1SnQ
Might have something that can help too 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
49m ago
@Corey19 , okay will try this one on my end and ill update once it works.