No records generation after creating a sc_request --> requested_item --> sc-task database view

CarolMa6
Tera Expert

Hi 

 

I created a Database view but for some reason no records are generated i think my "where clause" is the issue. The business requirement is report on all requests, requested items and catalog task on one view. What am i missing please help.

 

Database View

CarolMa6_0-1748353391717.png

 

1. View Table 

CarolMa6_1-1748353454559.png

2. View Table 

CarolMa6_2-1748353502606.png

 

3. View Table 

CarolMa6_3-1748353528392.png

 

Regards 

CarolMa

 

1 ACCEPTED SOLUTION

@CarolMa6 

Don't add any field as View field under any of the View tables.

Then use the database view and click Try It

It should work fine then

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

11 REPLIES 11

@Dr Atul G- LNG 

This does not give me any information related to requested item with missing catalog task. That is the report i want. 

Unless if the filter conditions i am using are incorrect. 

Hi @CarolMa6 

I tried on my end, and here is a list of RITM where no task as of now

 

DrAtulGLNG_0-1748436963243.png

 

*************************************************************************************************************
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]

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

@Dr Atul G- LNG 

 

Doesn't work, brings up all the RITM records and there is no way of indicating there's a missing catalog task or a column showing that a task was not generated. 

 

 

Sorry mate, it seems I did not understand your requirement. or missing something. 

 

If you see my screenshot , which says that these are RITM where no task has been generated till now and. think this is what to you looking for .

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron
Tera Patron

@CarolMa6 

your where clause for sc_task has issue, update as this, the correct field is request_item on SC Task which holds RITM

sctask_request_item = ritm_sys_id

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