Category and Subcategory on ServiceNow Record Producers are not visible to user with no roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 05:57 AM
create an incident ServiceNow record producer has category and sub category fields.
The subcategories showing either NULL or return all vales from sys_choice table it should show sub cat where the dependant value is current.category
For category variable I have done
- Map to field: True
- Field: Category
- Record Producer Table: incident
- Type: Lookup Select Box
- Catalog item: (Select your record producer)
- In the Question form section, we will simply name the field Category (or whatever you’d like in your scenario)
- The Type Specifications tab is what we really need to focus on and what will drive the first half of our solution.
- Lookup from table: Choice (sys_choice)
- Lookup value field: Value
- Lookup label field: label
- And our most important field will be our Reference Qualifier. We need to find all the Category choices for the incident table.
- Reference Qualifier: name=incident^element=category
AND sub category:
- Map to field: True
- Field: Subcategory
- Record Producer Table: incident
- Type: Lookup Select Box
- Catalog item: (Select your record producer)
- In the “Question” form section, we will simply name the field Subcategory (or whatever you’d like in your scenario)
- Once again, the “Type Specifications” tab is what we really need to focus on.
- Lookup from table: Choice (sys_choice)
- Lookup value field: Value
- Lookup label field: label
- Once again, our ServiceNow reference qualifier is very important. Like before, we need to find all the Subcategory choices on the incident table and dynamically add the dependent value from the selected Category.
- Reference Qualifier: javascript: “name=incident^element=subcategory^dependent_value=” + current.variables.category;
@Ankur Bawiskar @Chuck Tomasi @Community Alums @Karan Chhabra6 @Prince Arora @Maik Skoddow @Mark Roethof @Gaurav Shirsat @ghaing @tltoulson
PLEASE SEE THE BELOW IMAGES FOR REFERENCE AND HELP ME WITH THE SOLUTION
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 06:33 AM
Hello,
In the screenshot I do not see the reference qualifier for category and subcategory within inverted comma's Can you put it in inverted comma's and try as below:-
Category:-
"name=incident^element=category"
Subcategory;-
“name=incident^element=subcategory^dependent_value=” + current.variables.category;
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 06:42 AM
Hello,
Please add the below two scripts for "Subcategory" variable.
1. Reference qualifier : javascript: "name=incident^element=subcategory^dependent_value=" + current.variables.category;
2.
Regards,
Harish V