What is CONSTANT and use of Constant?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2023 04:18 AM
I'm new in servicenow and trying to educate myself. I wants to know What is CONSTANT and what is the use of Constant?
Thanks!
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2023 06:27 AM
Constant: A constant in ServiceNow is a variable whose value never changes after the initialisation.
There are two ways to define constant within ServiceNow.
1. Using properties: Define a property key value pair within System property and use its value within your code.
2. Create a Script Include: Create a separate include containing your constant variables (misnomer) and use it across your business rules and script includes.
Hope this helps.