- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 12:55 AM
Hi Team,
I have created an UI Action, I just want to route the user to another form once i click on it:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 01:02 AM
Hi @Community Alums ,
var url = "https://MYINSTANCE.service-now.com/sn_customerservice_bulkupdatecontactrelationship.do?sys_id=-1";
action.setRedirectURL(url);
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 12:59 AM - edited 06-03-2024 01:01 AM
Hello @Community Alums ,
Try below ,
current.update(); // save the current record (from table 1)
action.setRedirectURL(url_to_table_2_record);
If above does not works then try below.
action.setRedirectURL('u_table_2.do?sys_id=' + current.u_reference_field_to_table2);
for creating new record try below
action.setRedirectURL('u_table2.do?sys_id=-1');
Please try any one of the above way
Thanks,
Valmik Patil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 01:02 AM
Hi @Community Alums ,
var url = "https://MYINSTANCE.service-now.com/sn_customerservice_bulkupdatecontactrelationship.do?sys_id=-1";
action.setRedirectURL(url);
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand