What is ServiceNow Database View | Create ServiceNow Database View | Use ServiceNow Database View

Hi Folks,
In this tutorial we will be focusing on 3 aspect wrt Servicenow Database view
What is ServiceNow Database View ?
How to Create ServiceNow Database View ?
How to Use ServiceNow Database View ?
Lets understand the The value of ServiceNow database views
ServiceNow is built to be dependent on database tables to capture and store data. ServiceNow reporting helps make sense of this data. Reporting on existing tables, without having to delve into some advanced options, provides a great deal of flexibility. For example, when reporting on the Incident table, you can easily create a filter that will show all open incidents related to change requests that are also open. This is possible because the fields that exist on tables referenced by the source table can be used in filter conditions.
However, there are some scenarios where it may be inefficient or impossible to find the insight you’re looking for by reporting from a single table. For example, there may be scenarios where several tables contribute to the scenario you’re analyzing, or the relationships between associated data can’t be quantified using the referencing capabilities of baseline reporting on basic tables. For these scenarios, it may be useful to utilize a Database View. A Database View is essentially a pseudo-table representing a join between several contributing tables. The rows consist of combinations of contributing source records that share values according to pre-indicated mappings.
Example
As an example, we will look at the baseline Incident Metric Database View. This Database View joins the Metric Definition, Metric Instance, and Incident tables.
To access this database view, which should be available in your instance, visit the Database Views module found within the System Definition application menu. From the list view, search for the “incident_metric” record. The form for this record appears above.
The Database View form itself is fairly sparse. You will only need to define the name of the database view, its description, and the label/pluralization to be used to identify this view in other places within the platform. The important data here is defined in the records found in the View Tables related list.
The Table field defines the contributing table that should be part of the join.
The Variable prefix field defines the prefix that will be prepended to field names in the resulting pseudo-table. This will identify each field’s source table. For example. the incident table’s “assignment_group” field becomes “inc_assignment_group”. This prefixing is most often useful to differentiate between fields that appear in multiple contributing tables, but which have identical labels. It’s also key to identify field mappings for the “where clause,” as explained below.
The Where clause is what defines how the tables should be joined, or implicitly filtered. For this Database View, Metric Definition is filtered to include records where the defined table is “incident,” Metric Instance is joined with Metric Definition where the instance’s “Definition” field is the corresponding record, and Incident is joined where the instance matches the incident record. Note the use of the variable prefix values.
As a result of this definition, you will have access to report on things like “High Priority Incidents ‘In Progress’ for 3+ Days,” “Incidents Resolved on First Call (by Category),” or other such scenarios that would be difficult or impossible to report on without utilizing the functionality of Database Views.
Please like follow suscribe to my channel Technomonk and press the bell icon to get the latest update on my new videos.
Till then stay happy and safe .
Have a nice day .
Regards,
Amit Gujarathi

Пікірлер: 19

  • @Vickyks27
    @Vickyks27 Жыл бұрын

    Process is easy but the hard part is defining the relation.

  • @kamalarasia
    @kamalarasia Жыл бұрын

    Such a wonderful explanation and helped a lot

  • @ATSExperience
    @ATSExperience2 жыл бұрын

    Very helpful, thank you for sharing!

  • @amitg

    @amitg

    2 жыл бұрын

    Thanks

  • @srikanthregadi190
    @srikanthregadi1902 жыл бұрын

    Very nice explanation. Small change, i think join condition of 2 table should be changed as Md_defination==mi_sysid

  • @gsreddy6866
    @gsreddy68662 жыл бұрын

    how to create database views for sc_cat_item, sc_req_item and catalog variable set and sysapproval

  • @amitg

    @amitg

    2 жыл бұрын

    Please reach out to me on LinkedIn

  • @AnujSharma-eg7dg
    @AnujSharma-eg7dg10 ай бұрын

    how to display zero value?? if we want to group by assigned group and in a scenario there is no value in a particular group but we want to display that group name showing zero value...how to do that?

  • @amitg

    @amitg

    9 ай бұрын

    You have to create a group as zero group and then play around it

  • @chandanprasad2182
    @chandanprasad218210 ай бұрын

    can we fetch the data how much time spend by assign to person to resolve the incident

  • @amitg

    @amitg

    10 ай бұрын

    Yes you can you just have to you incident metric for the same

  • @shivakumar-ld1vw
    @shivakumar-ld1vw3 жыл бұрын

    if possible create separate watsup group, really you teaching good

  • @amitg

    @amitg

    3 жыл бұрын

    Sure please create a whatsapp group i will join

  • @parashuramrapelli7181

    @parashuramrapelli7181

    3 жыл бұрын

    @@amitg chat.whatsapp.com/I1vVYRP630yHiZxIFFuYBC

  • @parashuramrapelli7181

    @parashuramrapelli7181

    3 жыл бұрын

    Servicenow group for this channel

  • @fatimaa1991

    @fatimaa1991

    2 жыл бұрын

    How do you know what is common between the tables? How do yoh determine the id of one table is equivalent to sys id if another. I am stuck on the part where you make the relationships

  • @fatimaa1991

    @fatimaa1991

    2 жыл бұрын

    @@parashuramrapelli7181 i can't join this group...

  • @aesean
    @aesean2 жыл бұрын

    Thank you. One suggestion, could you enhance video quality. A 1080p format would be nice.

  • @amitg

    @amitg

    2 жыл бұрын

    I will try my best