- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 10:28 AM
Need the VDI name that should be auto populate we select user.
i used cmdb table and added the dynamic query but it is only working if user is submitting the request.
please find the below screenshot for refrence
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 03:32 AM
Hi,
since it's a lookup select box did you give variable attributes as this
ref_qual_elements=requested_for
I assume requested_for is the name of the variable and give this in advanced ref qualifier
javascript: "manufacturer=817bc8a3db5c7200dfe57dfdae96190a^sys_class_name=cmdb_ci_computer^assigned_to" + current.variables.requested_for;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 10:50 AM
Hey Buddy,
Just add "javascript: "
as in
javascript: "manufacturer......your rest of conditions....^assigned_to" + current.variables.requested_for;
This should work!
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 03:24 AM
javascript: "manufacturer=817bc8a3db5c7200dfe57dfdae96190a^sys_class_name=cmdb_ci_computer^assigned_to" + current.variables.requested_for;
this is showing the whole list.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 06:39 AM
The query is alright, what you need to do is to add
ref_qual_elements=Requested_For
Can you refer to below article:
https://community.servicenow.com/community?id=community_question&sys_id=f7918769db98dbc01dcaf3231f961998
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2022 03:32 AM
Hi,
since it's a lookup select box did you give variable attributes as this
ref_qual_elements=requested_for
I assume requested_for is the name of the variable and give this in advanced ref qualifier
javascript: "manufacturer=817bc8a3db5c7200dfe57dfdae96190a^sys_class_name=cmdb_ci_computer^assigned_to" + current.variables.requested_for;
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader