SPEntryPage script include only works in Global scope?

XuanYingY
Tera Contributor

I'm trying to implement redirection to employee center but I've come to discover that if the user is in a scoped application it does not redirect.

1 ACCEPTED SOLUTION

Chaitanya ILCR
Kilo Patron

Hi @XuanYingY ,

Have tried making the script include accessible in all application scopes?
or Try creating a new Script Include which extends the SPEntryPage Script include which is accessible from all application scopes

ChaitanyaILCR_0-1741141155772.png

 

and update these two properties new script include name

glide.entry.page.script      -   new global.SPEntryLocal().getLoginURL(); 
glide.entry.first.page.script  - new global.SPEntryLocal().getFirstPageURL();

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

2 REPLIES 2

Chaitanya ILCR
Kilo Patron

Hi @XuanYingY ,

Have tried making the script include accessible in all application scopes?
or Try creating a new Script Include which extends the SPEntryPage Script include which is accessible from all application scopes

ChaitanyaILCR_0-1741141155772.png

 

and update these two properties new script include name

glide.entry.page.script      -   new global.SPEntryLocal().getLoginURL(); 
glide.entry.first.page.script  - new global.SPEntryLocal().getFirstPageURL();

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@XuanYingY 

that script include doesn't have any dependency w.r.t scoped app or global scope.

Are you sure it's working as expected by adding logs in it?

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