- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2018 11:22 AM
Hello Everyone,
We are integrating ServiceNow through REST.
1) We are sending our incident number to that tool using rest with post method and we are getting a task number from them in response.
2) I am capturing that task id in a field on incident form.
3) Now, I have another web service where I need to send some fields from same incident form using POST method, here they I want to send these taskid in http header ( ex: content-type - taskid).
4) I am currently trying to trigger using business rule and stuck hear on http header.
Can anyone help me with this???
Thanks,
RK1229
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2018 11:32 AM
Yeah, Arka is right, you can use something like this
r.setRequestHeader("hearder name",current.taskid);
you can use this in your script.
Regards<
Raghava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2018 11:32 AM
Yeah, Arka is right, you can use something like this
r.setRequestHeader("hearder name",current.taskid);
you can use this in your script.
Regards<
Raghava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2018 11:35 AM
arka/raghava,
Can we send current captured number???
Thanks,
rk