Redirect user to a different url using Business rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 11:10 AM
Hi,
Im trying to redirect user using onAfter Business rule but I had no luck, what am I doing wrong?
var gr = new GlideRecord('sys_attachment');
gr.addEncodedQuery('table_sys_id='+current.getUniqueValue());
gr.query();
if(gr.next()){
gs.log('zhahgaha');
gs.setRedirect('/sys_attachment.do?sys_id=2522a51393c30210b73aba7efaba105a');
}