Redirect after approval is given

entony10
Tera Contributor

Hello community,

I have a question about redirecting users back to the homepage of the Self Service Portal after approving an item in their 'approvals list.

In the current situation, after approving an item, the managers are redirected to a list of approvals from different departments and managers. In the new situation I would like to change that by redirecting them back to the homepage of the Self Service Portal through a thank you pop-up after an approval.

Hopefully someone can provide me with some advice. Thanks in advance!        

4 REPLIES 4

Midhun1
Giga Guru

Hi,



setRedirect(Object)  

Sets the redirect URI for this transaction. This determines the next page the user will see.



Example:



gs.setRedirect("com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=d41ce5bac611227a0167f4bf8109bf70&sysparm_user="


+ current.sys_id + "&sysparm_email=" + current.email)


entony10
Tera Contributor

Hi Midhun,



How do I find the setRedirect(object) in this specific case? And is there already a line of scripting available to adjust there?



Thanks for the help so far!


Midhun1
Giga Guru

Hi,



After approving it should go to homepage right?


entony10
Tera Contributor

Hi Midhun,



No, when the approver receives an e-mail that they need to approve, for instance, a requested item. They go to the approval form and when they hit the button approve or reject there they will return to a list with approvals from all departments and people.