Hide Interceptor Links based on certain conditions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2020 08:08 PM
Could you let me know how to hide a few Interceptor links based on certain conditions. We open the interceptor by clicking on the New button on the incident and the links are displayed. I want to hide two links based on the values of the incident fields(reference field).
Please help me with some pointers.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2020 04:42 AM
The old wiki contains some helpful information on interceptors.
If you're doing this based on a UI action, wouldn't it be easier / better to do an IF condition within the UI action rather than needing to do an interceptor?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2020 05:00 AM
Hi Joyce,
In that case you can create a Query Business rule on Answer (sys_wizard_answer) table & then script something as below as an exmpale to hide an answer of inceptor from one group.
if(gs.getUser().isMemberOf('pass_group_sysid')){ //will restrict that interceptor answer for that group
current.addQuery('name','!=','answerName');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2020 10:52 PM
Hi Jaspal,
Thank you for the help. In the business rule, I need to validate the value of incident field. For example, if the value of the incident.aaa.bbb is "xyz", then I need to hide the interceptor. Could you please provide me any leads to this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2020 11:18 PM
Bit confusing, till the time you not submitting the incident how would you look for its value? As interceptor is a step before submission.