How to personalize variables values

MalikB
Tera Contributor

Hello can someone help to do the conditions of the two variables :

 

Variable name is : "Name or serial number of the old printer", type : Reference (table Printer); Visible if Request type = “Renew a network printer” Display a field allowing multi-criteria search in the CMDB printer table of type “Network” and in “In Service” status (criteria = Name / Serial number / Brand / Manufacturer).

 

Another variable name: "Equipment Location",  type:Reference(Location) location table; shows Beneficiary Location

3 ACCEPTED SOLUTIONS

pratikjagtap
Giga Guru

Hi @MalikB ,

 

 

  • Variable: "Name or serial number of the old printer"

    • Type: Reference (table: Printer)

    • Visibility Condition: Shown only if Request type = "Renew a network printer"

    • Search Criteria:

      • Must allow multi-criteria search in the CMDB Printer table

      • Filter results based on:

        • Type = "Network"

        • Status = "In Service"

      • Searchable fields:

        • Name

        • Serial Number

        • Brand

        • Manufacturer

  • Variable: "Equipment Location"

    • Type: Reference (table: Location)

    • Value Source: Shows the Beneficiary's Location

 

Please mark helpful if this helps you.

 

Regards,

Pratik

 

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@MalikB 

so what did you start with and where are you stuck?

Steps are easy

1) You can create a "Request type" drop down with your choices

2) onChange or UI policy to show Reference variable based on choice selected

3) Then in the reference/list collector (use list collector if you want user to select multiple records) variable use advanced ref qualifier to show only those CMDB Printer table where type=Network && State=In Server

4) Create another reference variable

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MalikB 

 

It is easy to do and almost the way OOTB. 

 

The variable name is : "Name or serial number of the old printer", type: Reference (table Printer);

Atul: Create a New Variable and type = Reference

and Refer to the Printer Table.

 

Visible if Request type = “Renew a network printer”

Atul: Create catalogue UI Policy, with condition

 

Display a field allowing multi-criteria search in the CMDB printer table of type “Network” and in “In Service” status (criteria = Name / Serial number / Brand / Manufacturer).

Atul: In Catalog UI Policy action, make this variable as Visible = True [ You need to set the reference qualifier as per criteria)

 

Another variable name: "Equipment Location",  type: Reference(Location) location table; shows Beneficiary Location

Atul: Same as above, new varaible

You can use the Auto populate feature in catalogue items to auto-populate the location or ask the user to select the area.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

3 REPLIES 3

pratikjagtap
Giga Guru

Hi @MalikB ,

 

 

  • Variable: "Name or serial number of the old printer"

    • Type: Reference (table: Printer)

    • Visibility Condition: Shown only if Request type = "Renew a network printer"

    • Search Criteria:

      • Must allow multi-criteria search in the CMDB Printer table

      • Filter results based on:

        • Type = "Network"

        • Status = "In Service"

      • Searchable fields:

        • Name

        • Serial Number

        • Brand

        • Manufacturer

  • Variable: "Equipment Location"

    • Type: Reference (table: Location)

    • Value Source: Shows the Beneficiary's Location

 

Please mark helpful if this helps you.

 

Regards,

Pratik

 

Ankur Bawiskar
Tera Patron
Tera Patron

@MalikB 

so what did you start with and where are you stuck?

Steps are easy

1) You can create a "Request type" drop down with your choices

2) onChange or UI policy to show Reference variable based on choice selected

3) Then in the reference/list collector (use list collector if you want user to select multiple records) variable use advanced ref qualifier to show only those CMDB Printer table where type=Network && State=In Server

4) Create another reference variable

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MalikB 

 

It is easy to do and almost the way OOTB. 

 

The variable name is : "Name or serial number of the old printer", type: Reference (table Printer);

Atul: Create a New Variable and type = Reference

and Refer to the Printer Table.

 

Visible if Request type = “Renew a network printer”

Atul: Create catalogue UI Policy, with condition

 

Display a field allowing multi-criteria search in the CMDB printer table of type “Network” and in “In Service” status (criteria = Name / Serial number / Brand / Manufacturer).

Atul: In Catalog UI Policy action, make this variable as Visible = True [ You need to set the reference qualifier as per criteria)

 

Another variable name: "Equipment Location",  type: Reference(Location) location table; shows Beneficiary Location

Atul: Same as above, new varaible

You can use the Auto populate feature in catalogue items to auto-populate the location or ask the user to select the area.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************