need help with database view

priyanka chodip
Tera Contributor

Hi There,

i have a requirement to get cases with a,b,c groups that has an sla or not
so i created tables below

priyankachodip_0-1765457617194.pngpriyankachodip_1-1765457670960.png

result looks like below

priyankachodip_2-1765457815351.png

it is acutally getting SCTASK,Case and other as well.
but i need only Case table data.
please advice on it.

Thankyou

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Add a condition to task types or numbers starting with ‘CS’ in the result

 

DrAtulGLNG_0-1765458805445.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/dratulgrover [ Connect for 1-1 Session]

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

Hi,

but the other issue is its fetching all the assignment groups including the group sysids i gave in the whereclause. 

Hi @priyanka chodip 

Did you try filtering based on the task type to see if it still shows the Sys ID?

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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

Hi @Dr Atul G- LNG 

i tired like below and its fetching all cases which has sla and dont have an sla. but i'm unable to achieve the last piece of it to get based of assignment groups.
i need cases with sla and without sla with specific assignment groups.

priyankachodip_0-1765890044386.png

priyankachodip_1-1765890074321.png
can you guide me how can i fetch it.
if i give case_assignment_group = 'sys_id' in where clause and try, its fetching call SLAs including sctasks,cases and other.

priyankachodip_2-1765890294876.png