Is it possible to write a REST Response Header to the Workflow Scratchpad?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2015 09:18 AM
Hello all,
An integration I'm working on requires me to grab information from a REST response header. I've been able to write sensor scripts to parse the REST body with various other REST messages, however, I am having a heck of a time trying to get the REST response headers.
Is there a way that I could grab the response header and write it to the scratchpad? Or is there any other way I could get the data out of the header that I need?
I've tried getHeaders() but I don't know if I was using it correctly for there is no signature or usage examples on the wiki site:
http://wiki.servicenow.com/index.php?title=RESTResponseV2_API#gsc.tab=0
Thanks,
Jacob Laux

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2015 10:21 AM
Hi Jacob,
You may find the below threads helpful from John Anderson blog.
http://www.john-james-andersen.com/blog/service-now/servicenow-restmessage-coding-tips.html
https://www.youtube.com/watch?v=Es6Bm5hgqXk