Lookup value in cmdb_ci_business_app based on entered company name

Bret Smith
Giga Guru

Reference field to bring back only the matches in the cmdb_ci_business_app table matching company value entered.

use form variable named: business_app_company to filter/return only business applications that match company 

 

companyLIKE(current.variables.business_app_company)

 

 

BretSmith_1-1725651855187.png

 

 

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

Hi Bret,

This will work if the business_app_company variable is a reference to the core_company table so that the value (sys_id) will match the value of the company field on the cmdb_ci_business_app table.  Since you are using the value of a variable, the reference qualifier has to look like this:

 

BradBowman_0-1725657227000.png

 

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

Hi Bret,

This will work if the business_app_company variable is a reference to the core_company table so that the value (sys_id) will match the value of the company field on the cmdb_ci_business_app table.  Since you are using the value of a variable, the reference qualifier has to look like this:

 

BradBowman_0-1725657227000.png

 

business_app_company variable reference lookup on core_company table

BretSmith_0-1725657680750.png

BretSmith_2-1725658122441.png

 

 

javascript: 'company =' + current.variables.business_app_company;

BretSmith_1-1725657987670.png