How to merge two conditions in Reference qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 01:56 AM - edited 10-31-2023 02:19 AM
Hello
How can we merge the two separate conditions in a reference qualifier?
Condition 1: javascript: gs.getProperty('crossfuze.cmdb.task_items_query');
Condition 2: javascript: new PrincipalClass().getPrincipalClasses();
Any assistance in resolving the issue would be greatly appreciated.
Thanks and Regards
Kartik Magadum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 02:12 AM
Hi Karthik,
Please refer below articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 02:16 AM - edited 10-31-2023 02:19 AM
Can you try like below :
javascript : var query;
var first_query = gs.getProperty('crossfuze.cmdb.task_items_query');
var second_query = new PrincipalClass().getPrincipalClasses();
query = first_query +'^' + second_query;
//gs.log("full query=" +query);
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 02:29 AM
Hello @Vishal Birajdar
Upon saving RQ, the field value of 'User reference qualifier' is changing from Advance to Simple.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 02:39 AM
Hi Kartik,
Is it custom field or OOTB field...??
Can you send a screenshot...if possible...!!
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates