Service portal UI action redirect to UI page

Harsha1
Tera Contributor

Hello Community,

I make a UI action on ITIL view. and this UI action redirect to on UI page. this works fine.

But In Service Portal UI action not redirect to UI page.

So can I do this?

find_real_file.png

Thanks & Regards,

Harsha.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

please share your UI action code

Does it have action.setRedirectURL()

If yes then action.setRedirectURL() doesn't work in portal

check this for alternative

Workaround to use action.setRedirectURL in Portal UI action

Regards
Ankur

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

View solution in original post

5 REPLIES 5

Swapnil Soni1
Giga Guru

Hi,

if you are using action.setRedirectURL(url) works only in server-side UI Actions. If yours is client-side, you either need to manipulate window.location object or enhance your UI Action and make it capable of executing both client-side and server-side code.

 

Let me know if this helps.

Thanks

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

please share your UI action code

Does it have action.setRedirectURL()

If yes then action.setRedirectURL() doesn't work in portal

check this for alternative

Workaround to use action.setRedirectURL in Portal UI action

Regards
Ankur

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

Thank you for response. 

Here is my UI Action code.

 

find_real_file.png

Thanks & Regards,

Harsha.

Hi,

So it won't work

refer the link I shared for alternative

Regards
Ankur

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