- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2019 12:30 PM
Instead of being redirected to the Catalog homepage, I want a form view to launch with details like the Requested for and Requested by and short description prepopulated. I can manually enter whatever else may be missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2019 10:30 AM
The OOTB UI Action script for "Create Request" is outlined below, how do I modify the script to first close the Incident and include closure notes and closure code before launching the Service Catalog home page? Thank you.
//Update saves incidents before going to the catalog homepage
current.update();
gs.addInfoMessage('You will need to navigate back to incident ' + current.number + ' upon request completion');
var url = "catalog_home.do?sysparm_view=catalog_default&sysparm_processing_hint=setfield:request.parent=";
url += current.sys_id;
action.setRedirectURL(url);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2019 10:35 AM
You can use current to set your field values before the current.update(); line
so current.incident_state =. x;
current.close_code = x;
current.close_notes = x;
then current.update(); <- this line saves the current record before showing the catalog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2019 11:10 AM
Thank you Michael. I will put this to test and report back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2019 12:56 PM
Hello Michael, adding the fields you specified to the script works for me. I appreciate your assistance with this.