Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Redirect to page after login

stryker129
Mega Guru

I stuck with redirect rules.

So I created a page in a Service Portal and would like to redirect all users to this page right after login.

I've read the following article:

Run script when user logs in

But in UI script I didn't understand where addLoadEvent function should be pasted and from where it should be called Gyazo - 6632a90ae007e9df64f87d6cc16c091b.png

How can I do redirect to the Service Portal page?

Can anyone tell me step-by-step implementation of this?

Thanks a lot!

1 ACCEPTED SOLUTION
3 REPLIES 3

BALAJI40
Mega Sage

Thanks for your input, balaji.


Can you please advise what should I type in a Value field inside glide.entry.first.page.script property in case of my page URL is /portal ?


And what should I change inside SPEntryPage script ?



Thanks.


If you need every user to redirect to service portal,


create new property,


name: glide.entry.first.page.script


values: new SPEntryPage().getFirstPageURL()