- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2023 01:25 PM
I am trying to find a way to read/understand the database schema for Servicenow. When I go to Tables & Columns and look at schema maps, they are so huge, it seems impossible to follow them on a computer monitor.
Bottom line, I need to know what are the primary and foreign keys relating one table to another. Simple example might be Requests and Request Items. I know there has to be a quick way to find such keys, but I dont know the way.
Any help appreciated
Stacy Whetzell
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 05:35 AM
Hi @StacyLen
yes OOTB you have the schema map tool. See https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/table-administr... for more information.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 08:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2023 09:16 PM
Hi @StacyLen
an OOTB ServiceNow already has over 4000 tables in place and after loading some heavy modules you will find more than 10000 tables typically. You cannot get a simple view on such a huge amount of tables, and your only chance is to into detail where required.
Next important thing to know: ServiceNow is encapsulating the database level completely and therefore we don't talk about primary & foreign keys in ServiceNow as these words relate to concepts on the database level. In ServiceNow we have "Reference" fields, and you can "follow" when having a look onto the table structure. You can reach this information either via the "Dictionary" module or by selecting "Table" from the table header options:
This approach is helpful for the outgoing direction of references. But if you want to know which other tables are referencing to the current table, you have to leverage the table schema tool.
Let me know if this was not helpful.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 05:26 AM
Thanks @Maik Skoddow
Is there a tool that if I enter two table names it will show me the Reference fields that connect them (if they are connected).
Thank you again Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 05:35 AM
Hi @StacyLen
yes OOTB you have the schema map tool. See https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/table-administr... for more information.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 08:52 AM
Thank you big time Maik