Servicenow Database View

shruthim1474210
Kilo Contributor

I have created the Database view (u_hardware_model_lifecycle_view) by joining the cmdb_hardware_product_model and cmdb_hardware_model_lifecycle. Database view created to get the report from alm_asset table which have active "ci" and doesn't have "Hardware lifecycle" data, but it is not working as expected. Please give me correct solution for this issue

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@shruthim1474210 

share screenshots of your config

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

Hi Ankur, Please refer the below screenshots


shruthim1474210_0-1762347233290.png

Thanks & Regards,

Shruthi

@shruthim1474210 

this should work, add this in where clause for the 3rd view table

hml_model = hm_sys_id

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi Ankur,

I have tried what you suggested, but it’s not working as expected. Please see the screenshot below. It should not retrieve records with a lifecycle phase — I only need the CI data where the lifecycle phase is empty.

 

shruthim1474210_0-1762357255397.png