In servicenow, . Check glide.sm.default_mode property on your instance. Check the mention of this property in safe_overrides in glide.properties (~/git/snc/master/glide/glide/src/com/glide/util/glide.properties). Is there any way we could set the default_mode to allow?
Assistant
In ServiceNow, the glide.sm.default_mode property is related to the Service Mapping feature and its default operational mode. To modify this property, you typically have two options: through the system settings in the ServiceNow instance or by editing configuration files if you have access to the underlying infrastructure, which usually is not the case for cloud-hosted instances.
To specifically check and alter the property:
User
Make sure there are some records in Blog Post and Press Release tables extends from blog post table. Do you see Press Release records in the list view of Blog Post? Note the URL when you open a press release record.
Assistant
In ServiceNow, when working with tables that extend from other tables (inheritance), it's important to understand how data visibility and table hierarchy affect what you see in the list view.
Here's how it generally works with your scenario involving "Blog Post" and "Press Release" tables:
User
Open a Press Release record in a tab as admin. Replace press_release by blog_post in the URL and <enter/return>. Do you notice a redirect back to press_release? Think why the Platform does this.
Assistant
When you open a "Press Release" record in ServiceNow and manually edit the URL to replace press_release with blog_post, you might notice that the system redirects you back to the press_release table. This behavior is intentional and serves specific purposes:
Table Hierarchy and Data Integrity:
User
Connect to your glide_master database using a client (MySQL Workbench or via console) and explore how the table, child table created above actually exists in the db and answer the following question:
a. What fields are the Primary Key and Unique in blog post table?
b. How are the References stored in the db? Blog.Author -> User. Does Author field store the name of the User or something else?
c. Can you access a record in child table with it’s parent table_name.do?sys_id=CHILD_TABLE_RECORD_SYS_ID? If no, why not? If yes, What fields are available on the Form Layout?
d. Make sure there are some records in task_list.do and incident_list.do on the instance. Check how records in task and incident data are stored in the backend database. Are they stored on the same table or separate?
e. Similarly, check how Blog Post and Press Release data is stored. Do you notice any difference compared to the Task table?
Assistant
glide.sm.default_mode
Accessing the Property in ServiceNow:
Go to the System Properties module, which can be found by typing "sys_properties.list" in the application navigator and pressing Enter.
Search for the glide.sm.default_mode property within this list. If it exists, you can modify its value directly in the UI.
Setting it to 'allow':
If you can find the glide.sm.default_mode property, you update its value by clicking on the record and changing the value to allow.
If this property is not present, you can create a new property with the same name (glide.sm.default_mode) and set its value to allow.
Consulting Documentation:
Ensure you consult ServiceNow’s official documentation or reach out to their support to confirm the implications of changing this property, as it might have significant effects on how Service Mapping functions in your instance.
Infrastructure Access:
If you have access to the ServiceNow infrastructure via a self-hosted setup, modifications in configuration files like glide.properties can be made. In cloud-hosted environments, such access is typically restricted.
Safe Overrides:
For self-hosted setups, ensure that any overrides in configuration files respect the intended settings, and modifying these should be ideally done with caution following a thorough impact assessment.
If you're looking to make such changes in a managed or SaaS environment, consider contacting ServiceNow support for guidance and assistance to ensure that changes align with your instance's policy and do not disrupt service operations.
Records Visibility in List Views:
If the "Press Release" table extends from the "Blog Post" table, records from the "Press Release" table are technically also records of the "Blog Post" table. This is because the "Press Release" inherits all fields and functionalities of the "Blog Post."
When you view the list of records in the "Blog Post" table, by default, you may indeed see records from the "Press Release" table unless specific filters or conditions are applied to show only records of the base "Blog Post" table.
URL Observations:
When you open a record from the "Press Release" table that appears in the "Blog Post" list view, the URL will typically reflect the actual table of the record you are viewing.
The URL in ServiceNow usually contains parameters like sys_id (unique identifier of the record) and table (the table scope). For example, you might see something like ...?sys_id=abcd1234&table=press_release.
The exact URL format may vary slightly depending on ServiceNow updates or instance configurations, but it generally helps you determine the exact table and record you're interacting with.
Understanding the Hierarchical Structure:
The hierarchy means that "Press Release" is a child of "Blog Post." Therefore, without specific configurations or filters to isolate them, child records can appear when you search or list parent table records.
Filtering by Table:
If you wish to view only "Blog Post" records excluding "Press Release" records, you may need to apply a filter that explicitly limits the view to only those records where "Table" is "Blog Post."
This can be done by adding a filter condition such as Type is Blog Post within the list view filter options.
By understanding these aspects, you can better navigate and manage records and their visibility in ServiceNow, taking advantage of table extensions to organize your data effectively.
Since "Press Release" is a child of "Blog Post," each record in the "Press Release" table is inherently a "Blog Post" record, but with additional fields or specific configurations.
ServiceNow enforces data integrity by ensuring that you interact with records in the context of their specific table scope. Just because "Press Release" extends "Blog Post" doesn't mean the system will allow you to interact with a "Press Release" record directly through the "Blog Post" interface without context.
Ensuring Correct Form Layout:
The "Press Release" table may have its own form layout, business rules, client scripts, and UI policies that need to be applied for accurate data handling and presentation.
By automatically redirecting to the correct table scope, ServiceNow ensures that these configurations are maintained and applied appropriately. If the system allowed the URL swap without redirection, you might end up missing critical UI elements or functionality unique to the "Press Release."
Security and Role-Based Access:
Redirecting to the correct table can also be a measure related to security permissions. Different tables can have different access controls, and this redirection helps maintain compliance with these restrictions.
User Experience Consistency:
By redirecting to the right table, ServiceNow maintains a consistent user experience, preventing confusion that may result from viewing records outside their designated interface.
Overall, this behavior upholds the integrity of how ServiceNow handles data structure, ensures proper data management protocols, and provides users with an intuitive interface tailored to their specific interactions with the system.
Exploring how data is stored in a ServiceNow database, especially for tables like "Blog Post" and its child "Press Release," involves understanding ServiceNow's data architecture, which utilizes a relational database structure. Let’s address each of your questions based on common ServiceNow principles and database structures:
a. Primary Key and Unique Fields in Blog Post Table:
Primary Key: In ServiceNow tables, the primary key is typically the sys_id field. This field is a unique identifier for each record across all tables in ServiceNow.
Unique Fields: Besides sys_id, uniqueness of other fields depends on the table and business requirements. By default, no other fields are unique unless explicitly configured through system properties or scripts.
b. How References are Stored:
ServiceNow stores references as sys_id values in the database. For example, if Blog.Author references the User table, the Author field would store the sys_id of the User record, not the user’s name.
This reference mechanism ensures data integrity and relationships within the database.
c. Accessing Child Table Records with Parent Table URL:
Access with Parent Table URL: You typically cannot access a child table record using the URL of its parent table directly (e.g., blog_post.do?sys_id=CHILD_TABLE_RECORD_SYS_ID). This is because each table, including child tables, has separate forms, scripts, and views tailored to their specific data structure.
Fields on Form Layout: For child tables, the form layout will display fields specific to that child table, including inherited fields from the parent. However, accessing via the parent table does not resolve because the UI configuration and backend scripts are tied specifically to the child’s context.
d. Task and Incident Data Storage:
Storage Structure: In ServiceNow, "Incident" is a child table of "Task." Records from both tables are stored in a single physical database table called task. The differentiation between tasks and incidents within the database is managed by the sys_class_name field, which indicates the specific class (or table) of each record.
e. Blog Post and Press Release Data Storage:
Comparison with Task Table: Similar to the task/incident model, both "Blog Post" and "Press Release" might be stored in a single base table (often named after the parent table, such as blog_post) with separate entries distinguished by the sys_class_name field, indicating whether a record is from "Blog Post" or "Press Release."
Difference Noticed: The main difference between how blog post/press release and task/incident are handled could be the specific custom configurations or additional fields present in the blog-related tables. Unlike task and incident, which follow a more standardized ITIL process model, custom tables like blog-related tables might have bespoke fields and rules based on business needs.
These insights are based on general patterns and architectural principles within ServiceNow. For a precise understanding, it would be necessary to have direct access to your ServiceNow instance and its database schema, which typically only administrators or ServiceNow developers would possess.