- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 06:43 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 09:46 AM - edited 01-26-2025 09:55 AM
I'm not entirely sure what you're asking. If the Root Cause Analysis answer is not useful, you can set it to Inactive:
If you need to keep the OOB Problem Task interceptor and want to create a new one, you can try to specify the sys_id of the wizard you want to use. Just replace path with the sys_id of your interceptor like this:
var wizID = new GlideappWizardIntercept('29f12894534823004247ddeeff7b1222').get();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 07:41 AM
Hi @DamianoG - The path is matched against the intercepts field of records in the sys_wizard table. If a match is found, .get() returns the sys_id of the matching record; otherwise, .get() returns null.
For example:
var wizID = new GlideappWizardIntercept('sys_notification_action.do').get();
wizID will be the sys_id of this record: /sys_wizard_list.do?sysparm_query=intercepts%3Dsys_notification_action.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 08:39 AM
Hi @Sheldon Swift , Thanks for the answer.
But now I have a doubt. Is there a way to specify more the intercept? I mean, if I have two matches, how can i select the one i need?
Basically, They asked me to make a new ui action, to create problem task from the related list of the problem.
I need to copy to one we already have available. They want to make it appear like the image here, but only the "General" line.
If I use
var wizID = new GlideappWizardIntercept('problem_task.do').get();
How can i select the correct intercept?
Because I think that if i use the method above, the system will find two matches for problem_task.do; the one of the attachment, and the one I'm going to create.
Hope I've been clear
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 09:05 AM
What happens if you hardcode wizID? If that works, you can just create a system property to hold that sys_id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 09:21 AM
@Sheldon Swift Sorry for my inexperience, but in what way I can put the hardcoded wizID in the script I've put in my first message?
Will the system be able to fill the problem field, so that the problem task is linked to the correct problem?