What is the difference between interactive and non interactive sessions in servicenow

Priya Shetty
Kilo Contributor

In flow designer in the trigger point in advanced options we have run for interactive sessions and non interactive session.

Can anyone explain me ?

6 REPLIES 6

Namrata Khabale
Giga Guru

Hey Priya,

 

Only Run for Non-Interactive Session:

 

Flow that is only triggered in non-interactive sessions. See Non-interactive sessions.

 

Only Run for User Interactive Session:

Flow that is only triggered in interactive sessions.

 

Interactive users:

New users added to the instance automatically become interactive users.

 

Non-interactive users:

Non-interactive users can only use their credentials to authorize API connections such as JSON, SOAP, and WSDL. They cannot log in to the ServiceNow UI. 

 

Refer the links below, you will get a clear idea:

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/flow-designer/referen...

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/users-and-groups/...

 

Mark Correct and Helpful if it helps!!!

 

Best Regards,

Namrata.

Vishakha
Mega Guru

Hi Priya,

In addition to Namrata.


Glide System method 'isInteractive' returns false in ServiceNow mobile application although user has logged in using userID, password from login screen in mobile UI and the session is active.

GlideSystem API (gs.isInteractive()) returns false when user logs in using mobile application 


The isInteractive() method checks if the current session is interactive. An example of an interactive session is when a user logs in using the log-in screen. An example of a non-interactive session is using a SOAP request to retrieve data.

To know more about this API refer isInteractive() - Developer API

However, this method always returns 'false' for a user who is logged in using ServiceNow mobile application. The reason is that the mobile interface all use REST API calls to get their data and as there's no persistent session, (which is the definition of interactive). 

Example


In general, the method isinteractive() is used in business rules to determine if it is as an actual user [or] a web service call that is performing an update/insert action on a table. But we should be wary of using this on mobile since it always returns false.

 

If it helps then please mark my answer Correct and Helpful.

Vishakha

Namrata Khabale
Giga Guru

Hey Priya,

Any update on this?

Regards,

Namrata.

Sudhanshu Talw1
Tera Guru