How to use long polling in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 11:07 PM
Hi Team,
I need to verify if Servicenow supports long polling or not.
Use case Scenario: There is a third party platform, I need to subscribe to its events and frequently open and keep the connection open for it to detect server changes and send it to ServiceNow (just as done in long polling).
Is there any way to do this in ServiceNow?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 11:57 PM
I cant't find anything about long polling.
But you can use long plling via mid server .
snow ->ecc queue-> mid-server -> mid-server scripts -> long polling tools(java python and any other )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 01:53 AM
Hi @newhand ,
Can you help me find the file you mentioned (maybe a tablename or link to a module), not able to find it under ecc_queue or mid server modules.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 05:28 PM
HI @MarvinDS
Eccqueue and mid-server can offer a ability to run any scripts or applications , with this you can do anything that servervice-now instance can't do.
below link is about midserver(information about eccqueue can also be found from this link)
and the below part i posted needs to be created by yourself .
mid-server scripts -> long polling tools(java python or any other )