Messages can be utilized to provide translations for several different scenarios where Info, Error, and other system messages are displayed. This allows users to not have to manage the translation directly in the scripts that generate the messages and instead manage them from a central Messages[sys_ui_message] table.
These Messages are used in a number of areas in the system to display placeholder text, help text information, etc throughout the UI. I will give an example of how to change the Filter Navigator placeholder text further on in this article.
They can also be used as a time-saving mechanic when generating these system messages so that they always have the same look and feel but also contain dynamic content. I will be explaining this below.
Messages[sys_ui_messages] Table
We will first create our Messages that will be used during this example. Please note that you can utilize the Messages functionality but in order to support translations, the I18N: Internationalization plugin must be activated.
Go to the Message[sys_ui_message] table by navigating to System UI > Messages or sys_ui_message.list in the Filter Navigator. I’m showing the Message records for my two languages I’ll be working with, English and Pirate.
Key: Unique identifier used to get the message via script which we will see in a moment. Notice that the Key value is the same for both, only the Language field is different so that depending on the user’s language, the proper translation of the message is displayed.
Application: Used to isolate the message for Scoped Apps. In our case it will be Global.
Language: Allows you to select the Language you would like the message to be displayed for. If the I18N Language Internationalization plugin is not activated, the only option will be English.
Message: The message you wish to display for the given language selected.
Using Messages in Scripts
With our Messages created, we will now utilize them in an onChange Client script. I will give an example of the same Message displayed via Business Rule just for clarity.
For whatever reason, let’s say you would like the ITIL user completing the Incident form to receive a message and a link the Assignment Group selected whenever is changes. Again, probably not a real use case, but it is easy to demonstrate how Messages can be used.
We will create or onChange Client script to run whenever Assignment Group changes to anything but empty and display our message if the Assigned To field is not filled in. The important part is to be sure to fill in the Messages field with our Key value from the Message records we have created above.
The Script used to display our message is below.
functiononChange(control,oldValue,newValue,isLoading,isTemplate){ if(isLoading ||newValue ===”){ return; }if(!g_form.getValue(‘assigned_to’)){//Building our Array of values to be placed in the {0} and //{1} palceholders that we placed in our Message records varmsgVarsArray =[];
msgVarsArray.push(newValue);
msgVarsArray.push(g_form.getDisplayBox(‘assignment_group’).value);//Format the message by retrieving our message from the //”Messages” field, and then populating it with our dynamic //values in our above array varmsg =formatMessage(getMessage(“Demo Message on Incident”),msgVarsArray)+“.”;
g_form.addInfoMessage(msg); } }
We can now see the results of our script below with my User’s language set to English…
…and now set to Pirate!
To call this via Business Rule, the script would be as follows.
varmsg =gs.getMessage(“Demo Message on Incident”,[current.assignment_group,current.assignment_group.getDisplayValue()]);
gs.addErrorMessage(msg);
Update the Filter Navigator Placeholder Text Using Messages
To change the default text on the Filter Navigator in ServiceNow’s internal UI to something other than “Filter navigator”, simply follow the steps below. Please note that this is a customization and needs to be thought through before implementing
Navigate to System UI > Messages[sys_ui_message] and select “New” button from the list-view
Set the “Key” field to “Filter navigator”. ***MUST BE “Filter Navigator”***
Set the “Message” field to anything that you want.
Select the “Submit” button to insert the new record.
Learn how Pathways Consulting Group can work for you
Connect with a ServiceNow Expert
Contact Us
risk, it service management, organization, workflow, managed services, servicenow, regulatory compliance, asset management, infrastructure, configuration management database, automation, software asset management, configuration management, cloud computing, customer, asset, customer service, productivity, governance, it infrastructure, analytics, customer experience, efficiency, mobile app, innovation, field service management, digital transformation, audit, risk management, return on investment, knowledge, software as a service, project management, visibility, operational efficiency, retail, system, consultant, mobile app development, architecture, data migration, custom app development, itsm, servicenow managed services, implementation services, servicenow ecosystem, servicenow custom app, servicenow implementation services, service catalog, servicenow solutions, servicenow service, customer service management, service now consultant, servicenow consultancy, servicenow consultant, servicenow implementation partner, supply chain, implementation, customer satisfaction, database, user experience, server, leverage, knowledge management, devops, ecosystem, scalability, user experience design, business process, provisioning, enterprise software, data model, landscape, itil, competitive advantage, customer engagement, microsoft dynamics 365, workforce, empowerment, expert, cyber resilience, health care, information technology, css, logistics, culture, chatbot, patient, outsourcing, strategy, vulnerability, onboarding, consumer, client, change management, revenue, document, policy, inventory, nursing, therapy, leadership, custom solutions, research, accounting, email address, executive search, mentorship, strategic planning, human resources, employment, medical, pathways consulting, leadership development, continuing education, nurse, mission, nursing excellence, financial planning, pathway, understanding, pain, nursing home, training, certification, accounts payable, release, servicenow itsm, servicenow consulting, servicenow consulting services, procurement, methodology, machine learning, transparency, cloud management, energy, intelligence, workflows, order management, implementation partner, service level management, professional services, enable, servicenow implementation, service management, consulting firms, application management services, servicenow platform, servicenow consultants, sciencesoft
Frequently Asked Questions
What services does ServiceNow provide?
ServiceNow provides a range of IT and enterprise management services, including service management, operations management, business management, and employee workflows, all delivered through its cloud-based platform.
What does a ServiceNow consultant need to know?
A ServiceNow consultant needs to have a deep understanding of the ServiceNow platform, including its capabilities, configuration, and customization options, to effectively design and implement solutions that address the client's specific requirements.
What does a ServiceNow consultant do?
A ServiceNow consultant helps organizations implement, configure, and customize the ServiceNow platform to streamline their IT processes, improve service delivery, and enhance operational efficiency.
Does ServiceNow offer consulting services?
ServiceNow offers consulting services to help organizations leverage the platform's capabilities and achieve their digital transformation goals.
What industries benefit from ServiceNow solutions?
ServiceNow solutions are beneficial for a wide range of industries, including healthcare, finance, IT, manufacturing, and government, as they help streamline workflows, automate processes, and improve service delivery across various business functions.
How does ServiceNow enhance workflow automation?
ServiceNow enhances workflow automation by providing a centralized platform that streamlines and integrates various business processes, enabling efficient task management, real-time data insights, and seamless cross-functional collaboration.
What features distinguish ServiceNow from competitors?
ServiceNow's distinctive features include its low-code development platform, advanced workflow automation, and comprehensive service management capabilities, setting it apart from competitors in the enterprise software market.
How to customize ServiceNow applications effectively?
Customizing ServiceNow applications effectively involves identifying specific business requirements, leveraging the platform's configuration tools, and aligning customizations with best practices to ensure optimal performance and maintainability.
What are common use cases for ServiceNow?
Common use cases for ServiceNow include IT service management, employee onboarding and self-service, asset management, incident and problem management, change management, and workflow automation across various business functions.
How does ServiceNow support IT service management?
ServiceNow supports IT service management by providing a unified platform that automates and streamlines various IT processes, including incident management, change management, and service catalog, to enhance operational efficiency and improve service delivery.
What certifications are beneficial for ServiceNow consultants?
Beneficial certifications for ServiceNow consultants include the ServiceNow Certified System Administrator, ServiceNow Certified Implementation Specialist, and ServiceNow Certified Application Developer certifications, which demonstrate expertise in ServiceNow platform configuration, implementation, and development.
How to ensure ServiceNow implementation success?
Ensuring ServiceNow implementation success requires a strategic approach, effective project management, and collaboration between the ServiceNow partner and the client organization to align the platform with business goals and user needs.
What integrations does ServiceNow support?
ServiceNow supports a wide range of integrations, including popular enterprise applications, cloud services, and legacy systems, enabling seamless data exchange and streamlined workflows across the organization.
How can ServiceNow improve customer service experience?
ServiceNow can improve customer service experience by providing a centralized platform that streamlines processes, automates workflows, and enables real-time tracking and resolution of customer issues, leading to enhanced efficiency and responsiveness.
What are best practices for ServiceNow configuration?
Best practices for ServiceNow configuration include: aligning configuration with business requirements, implementing robust change management processes, leveraging out-of-the-box features, and regularly reviewing and optimizing the configuration to ensure it meets evolving needs.
How does ServiceNow handle data security?
ServiceNow prioritizes data security through robust access controls, encryption, and compliance with industry standards to protect client information.
What roles exist within ServiceNow consulting?
The roles within ServiceNow consulting typically include ServiceNow Architects, ServiceNow Developers, ServiceNow Administrators, ServiceNow Business Analysts, and ServiceNow Project Managers, each with specific responsibilities in implementing and managing ServiceNow solutions.
How to manage ServiceNow updates and upgrades?
Effectively managing ServiceNow updates and upgrades involves careful planning, thorough testing, and seamless deployment to ensure minimal disruption to business operations and maximum benefits from new features and enhancements.
What analytical tools does ServiceNow provide?
ServiceNow provides a range of analytical tools, including built-in dashboards, custom reporting, and advanced analytics capabilities to help organizations gain insights and make data-driven decisions.
How to measure ServiceNow project success?
Measuring ServiceNow project success involves assessing key performance indicators such as user adoption, productivity gains, process improvements, and cost savings achieved through the implementation.
What training is available for ServiceNow users?
Training available for ServiceNow users includes ServiceNow certification courses, instructor-led training, and self-paced online learning modules to enhance their skills and knowledge of the platform.
How does ServiceNow facilitate change management?
ServiceNow facilitates change management by providing a centralized platform to streamline the change process, automate workflows, and track changes across the organization, enabling efficient and controlled implementation of updates and modifications.
What are the costs associated with ServiceNow?
The costs associated with ServiceNow can vary depending on the specific requirements of the organization, such as the number of users, the features and functionalities needed, and any customization or integration requirements.
How to troubleshoot common ServiceNow issues?
Troubleshooting common ServiceNow issues involves identifying the problem, checking logs, testing configurations, and leveraging ServiceNow's knowledge base and community resources to find solutions and resolve the underlying issues.
What is the role of ServiceNow in DevOps?
ServiceNow plays a crucial role in DevOps by providing a centralized platform for streamlining IT workflows, automating processes, and enabling collaboration across development and operations teams, thereby enhancing the efficiency and speed of software delivery.
How to create reports in ServiceNow?
Creating reports in ServiceNow involves accessing the Reports application, configuring report parameters, and selecting desired data fields and filters to generate customized reports based on your requirements.
What are the advantages of ServiceNow cloud solutions?
The advantages of ServiceNow cloud solutions include scalability, reduced IT infrastructure costs, enhanced security, and seamless software updates, enabling organizations to focus on core business objectives.
How does ServiceNow enable collaboration among teams?
ServiceNow enables collaboration among teams by providing a centralized platform that facilitates real-time communication, task management, and data sharing, allowing teams to work together seamlessly and efficiently towards shared goals.
What is the future of ServiceNow consulting?
The future of ServiceNow consulting lies in the growing demand for comprehensive and tailored solutions that leverage the platform's capabilities to drive digital transformation and streamline business processes.
How to leverage ServiceNow for process optimization?
Leveraging ServiceNow for process optimization involves streamlining workflows, automating repetitive tasks, and leveraging the platform's robust capabilities to enhance operational efficiency and drive continuous improvement within an organization.