- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2022 09:04 PM
Hi All,
I have Asset and requested for fields on the record producer, so Asset field on the asset table , so here my requirement , in the asset field need to display only hardware assets which are assigned to that user selected in the user field ?
please suggest me on this
Thanks
Deepika
Solved! Go to Solution.
- Labels:
-
Enterprise Asset Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2022 09:13 PM
Hi,
you can use reference qualifier on the Asset variable
give correct variable name
javascript: '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
‎03-06-2022 09:13 PM
Hi,
you can use reference qualifier on the Asset variable
give correct variable name
javascript: '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
‎03-06-2022 09:42 PM
Hi Ankur,
Thanks for the response.
So here Asset variable created on Asset table, so i want to display hardware assets only on Asset field.So what condition need to be add to the above code?
Thanks
Deepika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2022 09:44 PM
Hi,
what do you mean by hardware asset?
your asset variable refers to which table? alm_asset or alm_hardware
you can keep reference variable on alm_hardware
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
‎03-06-2022 10:10 PM
Actually Asset filed created on the alm_asset table
Thanks
Deepika