- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 04:06 AM
Hello everybody,
I want to create a database view where to see data from the following tables: task_sla, sc_task and incident - as I need to be able to see all task_sla associated with Incidents and Catalog tasks on the same view, together with the Requested for Catalog task and Caller for Incidents.
I have configured the Database as below:
But no records are displayed:
Could you please help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 05:39 AM
you create database view usually between tables which are linked to each other in some sense.
In this case incident and sc_task are not linked
Incident is something which is created for something not working
sc_task is created for catalog items
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 04:13 AM
Hi @Alina-Maria_S ,
Basic for seeing incidents and SLAs associated to incidents you can utilize the incident_sla OOTB database view that there is available.
According to your other requirement for sc_task and incident, how are these associated together? or do you mean incident_task instead of sc_task?
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 04:17 AM
Hi @AndersBGS ,
Thank you for replying. The requirement is to have on the same list displayed SLAs associated with Incidents and Catalog Tasks with the possibility to add on the list following fields: Requested for (for Catalog Task) and Caller (for Incidents).
Kind regards,
Alina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 04:24 AM
you can join task_sla with incident and task_sla with sc_task
what's the link between incident and sc_task?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 04:27 AM
@Ankur Bawiskar , there is no link between incident and sc_task. Without the link between them, I cannot use the database view?