any possible way to access GlideSessions.lockOutSessionsInAllNodes from scoped application

JaineelPetiwale
Tera Contributor

Hey, I'm working on a custom scoped application, in which im using GlideSessions.lockOutSessionsInAllNodes for some purpose. But getting, 

GlideSessions is not allowed in scoped applications

Is there any possible way to use GlideSessions.lockOutSessionsInAllNodes in scoped application ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@JaineelPetiwale 

what's your business requirement here?

There are lot of script include which don't work in scoped app

Workaround is

1) create global scope script include, accessible from all scopes

2) then call this global scope script include from your scoped app

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Hey, actually i overlooked at your message, because altho you both had solution and both asked similar question, but his had detailed explaination of suggested solution too. Whereas you just suggested a solution. I believe, here in community our each message should detailed, because maybe my message might not be solution, but it might help some else in finding something else or learn something they might not knew.

Ankur Bawiskar
Tera Patron
Tera Patron

@JaineelPetiwale 

what's your business requirement here?

There are lot of script include which don't work in scoped app

Workaround is

1) create global scope script include, accessible from all scopes

2) then call this global scope script include from your scoped app

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader