REST/Table API-Session Reuse for multiple request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2016 01:43 AM
I am using REST/Table API for ServiceNow.
To process multiple requests , I am sending request to servicenow endpoint in a for each Loop.
I had a query here : In servicenow, for multiple requests, is the session maintained?
or Is there a provision using which I can Reuse the connection with ServiceNow for multiple requests ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2016 06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2016 06:30 AM
Hi,
Very important topic. Always develop your integration to use a persistent session.
Troubleshooting inbound integrations performance
https://hi.service-now.com/kb_view.do?sysparm_article=KB0564204
REST and other integration traffic often leads to stale session buildup and scarce available memory
https://hi.service-now.com/kb_view.do?sysparm_article=KB0552064
Develop your integration to use a persistent session
- Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2016 06:46 AM
Hi,
There is also a new system property available in Helsinki.
glide.integration.session_timeout
"Decrease the maximum integration session duration by adding the property glide.integration.session_timeout to the System Properties [sys_properties] table.
This property accepts an integer value that specifies the number of minutes to keep integration sessions open. This property is set to 5 by default, keeping integration sessions open for 5 minutes"
https://hi.service-now.com/kb_view.do?sysparm_article=KB0552063
- Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2017 10:20 AM
The ServiceNow Wiki content is no longer supported. Updated information about this topic is located here: Direct Web Services
Visit http://docs.servicenow.com for the latest product documentation

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2016 07:25 AM
Hi Bhavna,
You can maintain the session by maintaining the cookies returned by the initial request. Most HTTP client libraries will support this. As long as you maintain cookies, the same session will be reused across multiple requests.