How to display only hardware assets based on user selected?

Deepika61
Tera Contributor

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

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use reference qualifier on the Asset variable

give correct variable name

javascript: 'assigned_to=' + current.variables.requested_for;

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use reference qualifier on the Asset variable

give correct variable name

javascript: 'assigned_to=' + current.variables.requested_for;

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Actually Asset filed created on the alm_asset table

Thanks

Deepika