Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 01:21 AM
I created ui action to create a sc_task from ritm record. Once the ui action is clicked there should be certain fileds autopopulate and once they submit sc_task it should redirect record to parent record i.e . Ritm record.
My ui action script
var url = new GlideURL("sc_task.do");
url.set("sys_id", "-1");
//url.set("sysparm_query", "^parent=" + current.sys_id);
url.set("sysparm_query", "^request_item=" + current.sys_id);
action.setRedirectURL(url);
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 01:28 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 01:28 AM
action.setReturnURL(current);
is worked for me.