ServiceNow Advanced Reference Qualifier | How to filter the Assignment group based on Assigned To
Been in a predicament in ServiceNow, where you know the person a task needs to be assigned to, but don’t know the right group? I got you!
In this video, we add an advanced reference qualifier on a dictionary override on the assignment group fields (for incidents) that calls a server side script include to run some funky glideRecord queries and return as back a refined list of group sys_id’s. Its then these groups that are shown when you click the Assignment Group magnifying glass.
https://docs.servicenow.com/en-US/bundle/tokyo-platform-administration/page/script/server-scripting/concept/c_ReferenceQualifiers.html
https://www.servicenow.com/community/developer-forum/dynamic-advanced-reference-qualifier-examples/m-p/1386576
Reference Qualifier bit:
javascript:new global.AssignmentGroupFilter().refineAssignmentGroup(current.assigned_to)
Script Include:
Tags: advanced reference qualifier beth anglin GlideRecord reference field reference qualifier script include servicenerd servicenow admin servicenow demo servicenow tutorial sysid in
You may also like...
How to create a Variable Set
ServiceNow San Diego Flow Diagramming | Flow Designer stuff #Shorts
ServiceNow: How to embed hyperlinks in work notes | clickable links
- Next story Flow Designer Error Handling ServiceNow | How to…
- Previous story ServiceNow GlideAggregate Count | Is it better than GlideRecord getRowCount()
All Videos / New Features / Tips & Tricks
AI in ServiceNow with Justin Meadows | What does it mean?
February 27, 2023
New Features / Tips & Tricks
What is ChatGPT and Can We Use it for ServiceNow
December 18, 2022
- Recent Posts
- Popular Posts
- Recent Comments
ServiceNow Process Automation Designer (PAD) | What does it do?
December 19, 2023
All Videos / Flow Designer
“Do the Following Until” Flow Logic in ServiceNow Flow Designer
September 1, 2023
Exploring Dynamic Flow and Get Flow Output Logic in ServiceNow Flow Designer!
July 24, 2023
All Videos / Flow Designer / Tips & Tricks
Flow Designer Error Handling ServiceNow | How to…
July 3, 2023
June 11, 2023
Service Catalog / Tips & Tricks
October 30, 2022
Integrations
ServiceNow Inbound REST API | Import Set API
September 12, 2022
New Features / Shorts
ServiceNow San Diego Polaris | ServiceNow Next Experience UI #SanDiego #Polaris #Shorts
February 7, 2022
Flow Designer
ServiceNow Flow Template Builder | Create a template using Flow Template Builder
October 6, 2022
- artificial intelligence business rule client script flow Flow designer Flow designer development flow designer for service catalog flow designer servicenow flow designer servicenow orlando flow designer servicenow training flow design tutorial g form glideajax GlideRecord integration hub onload script include service catalog service catalog in servicenow service catalogue servicenerd servicenow servicenow admin servicenow administrator training servicenow community servicenow demo servicenow developer servicenow developer training servicenow flow servicenow flow designer servicenow flow designer approval servicenow flow logic servicenow glideajax example ServiceNow how to servicenow integration servicenow microsoft teams servicenow new features ServiceNow Next Experience ServiceNow Polaris servicenow reference field ServiceNow San Diego servicenow shorts servicenow training servicenow tutorial subflow
- Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers
- Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand
- OverflowAI GenAI features for Teams
- OverflowAPI Train & fine-tune LLMs
- Labs The future of collective knowledge sharing
- About the company Visit the blog
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
How to get all users from assignment group in service now?While creating an INCIDENT i need to assign a User from the particular group
enter image description here
I dont know how did i get the assigned to as a sysId in the response. Please help me to know how do i find all the users of a particular group.?
- servicenow-rest-api
- community-server
As you can see in your image the information for the groups is stored in table sys_user_group. The information which users are assigned to which group is stored in table sys_user_grmember. So the REST query could be a GET to this URL:
https://YOURINSTANCE.com/api/now/table/sys_user_grmember?sysparm_query=group%3DSYSIDOFUSERGROUP
Your Answer
Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more
Sign up or log in
Post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy .
Not the answer you're looking for? Browse other questions tagged rest servicenow servicenow-rest-api community-server or ask your own question .
- Featured on Meta
- Announcing a change to the data-dump process
- We've made changes to our Terms of Service & Privacy Policy - July 2024
Hot Network Questions
- Are there any examples of moving Manses?
- Is it possible to use "sshd_config" to prevent root login only after a user has logged in via ssh?
- Handmade number sequence puzzle - but I broke it!
- How to reinstall a ceiling fan that fell out of ceiling?
- SSD patriot BURST REPAIR
- Distribution after Combining Two Sets of Normal Distribution Samples
- Is it safe to keep an outdated credit card?
- Good publisher versus self publishing
- Drawing perfect square in QGIS
- Cannot conditionally split a formula into two lines
- How do you get on the list to be notified of realtime LSST alerts (like supernovae)?
- How to make an operator form of Part[] to use with // (Postfix)
- When do the Mythbusters appear in the Phineas and Ferb Star Wars special?
- How is the name "Took" pronounced?
- What is the best way to close this small gap in the tile?
- Research Faculty with no salary
- Windows 11, applications take a few seconds to open, but only the first time I open them
- An SF story where an orangutan writes a book that is published
- How long should I boil a liquid mixture containing vanilla extract to vaporize the alcohol, when making ice cream?
- Crop package: put info at the bottom?
- Eisenstein's last theorem
- Hypothesis and Scientific Method
- Check if \tikZ \pic is defined or not
- Had there ever been a self-ejecting FDR/CDR?
IMAGES
VIDEO
COMMENTS
Use the Type field to define categories of groups. Once defined, you can use these categories to filter assignment groups based on the group type using a reference qualifier. For example, when selecting.
Loading... Loading...
Create filters or filter groups - Product Documentation: Vancouver - Now Support Portal.
Navigate to All > User Administration > Groups. Select a group record. Click the lock icon beside Type. Click the lookup icon beside the selection field. The Group Types dialog opens. Complete the following steps. Click New. Enter the group type name and description. For example, to define a type for a group as incident and problem , enter ...
I want to update the assignment group to a particular assignment group when the condition fulfills on RITM ie. service offering is xyz and location is abc, then it should update. For example, there is one catalog item that is being raised by GETit and RITM is generated with an assignment group. I want to update that value when the matching ...
In this video, we add an advanced reference qualifier on a dictionary override on the assignment group fields (for incidents) that calls a server side script include to run some funky glideRecord queries and return as back a refined list of group sys_id's. Its then these groups that are shown when you click the Assignment Group magnifying glass.
ServiceNow
Loading... Loading...
You can use groups for both, but set the "type" differently. E.g an approval group would have the type of "approval" and the resolver groups can have a type of "resolver". This then distinguishes them. Then in your "assignment_group" column on your table you can set a reference qualifier to ONLY filter down on the type of ...
As you can see in your image the information for the groups is stored in table sys_user_group. The information which users are assigned to which group is stored in table sys_user_grmember. So the REST query could be a GET to this URL:
You could find the incidents using a script with a combination of history sets and the reassignment count on the INC. You'd need to, for every incident not currently assigned to your group that has a reassignment count >= 1, walk backward in the history set one update at a time until it's no longer possible, and at each step check if the assignment group matches your group.
A customer had the requirement to restrict a field referencing sys_users to only list active users who are members of a specific group.
Our instance of ServiceNow has an awful lot of Assignment Groups and for this purpose I am only interested in those with the word "Engineer" in the group name. I could use the built in interactive filter 'Assignment Group' but as we have so many groups I would prefer to use a version of this interactive filter where sys_user_group Name starts ...
Calculate the duration of an incident based on the Assignment Group. Most of the cases, the incident will be traversed to multiple teams for resolution. In such cases, if we want to calculate the duration.
Create an assignment data lookup rule - Product Documentation: Vancouver - Now Support Portal.
It's one of the tricky things about the dot-walking bit. Keep the "requested item" expanded, but clear out your filter right above that (magnifying glass - request). The filter applies to all levels of the dot walk. We have a report on "My groups unassigned work," showing everything in the task table where assignment_group is "one of my groups ...
Create a reference field interactive filter - Product Documentation: Vancouver - Now Support Portal.
The requirement is to auto-populate the "Assignment Group" field present on the 'sc_req_item" table
How to hide the inactive group from the assignment group list on the incident form Resolution Assignment group needs to be filtered based on active values. Following are the steps to achieve this: 1. Go
Loading... Loading...