Skip to Content
Knowledge is Power, so learn 🎉
Tutorial13 03 2025Servicenow No Code App Development Beginner S Guide

Level Up Your ServiceNow Skills: A Beginner’s Guide to Building Custom Apps (No Code Required!)

So, you’re ready to dive into the exciting world of ServiceNow application development? Fantastic! You might be thinking, “But I don’t know how to code!” Don’t worry! ServiceNow’s low-code/no-code platform allows you to build powerful custom applications without writing a single line of Javascript (initially!). This guide will walk you through the basics, equipping you with the knowledge to create your first custom application.

What are Custom Applications and Why Build Them?

Think of ServiceNow as a Lego set. The out-of-the-box functionalities (like Incident Management, Change Management, etc.) are pre-built models. Custom applications allow you to create your own unique creations using those existing “Lego bricks,” or create entirely new ones tailored to your specific business needs.

Here’s why building custom apps is beneficial:

  • Automate Unique Processes: Address workflows and processes that aren’t covered by standard ServiceNow modules.
  • Improve Efficiency: Streamline tasks and reduce manual effort.
  • Enhance User Experience: Create intuitive interfaces that cater to your users’ specific needs.
  • Increase Innovation: Empower your team to experiment and develop solutions that drive business value.

The Foundation: Understanding ServiceNow Building Blocks

Before we start building, let’s familiarize ourselves with the core concepts:

  • Tables: Tables are the fundamental data structures in ServiceNow, similar to spreadsheets or database tables. They store information about specific entities (e.g., incidents, users, assets). Each row represents a record, and each column represents a field.
  • Fields: Fields are the individual data elements within a table (e.g., Incident Number, Short Description, Priority). They define the type of information stored in each column.
  • Forms: Forms are the user interfaces for creating, viewing, and editing records in a table. They display the fields and allow users to interact with the data.
  • Lists: Lists are a way to view multiple records from a table in a structured format.
  • Modules: Modules are the navigation links in the ServiceNow interface that allow users to access specific tables, forms, or reports.
  • Application Scope: This defines the boundaries of your application. It helps prevent naming conflicts and ensures that your application doesn’t interfere with other ServiceNow functionalities.
  • Roles: These control access to applications and functionalities. You can define roles to restrict access to certain tables, forms, or modules.

Step-by-Step Guide: Building a Simple “Employee Onboarding” Application

Let’s create a simple application to manage the employee onboarding process. This app will track new hires and their onboarding tasks.

Step 1: Create a New Application

  1. In the ServiceNow interface, type “Studio” in the filter navigator and select System Applications > Studio.
  2. Click on “Create Application”.
  3. Enter the following details:
    • Name: Employee Onboarding
    • Description: Tracks and manages the employee onboarding process.
  4. Click “Create”. The Studio will open with your new application.
  5. If prompted, select ‘Start from scratch’

Step 2: Create the “New Hire” Table

  1. In the Studio, click on “Create Application File”.
  2. Select Data Model > Table and click “Create”.
  3. Enter the following details:
    • Label: New Hire
    • Name: u_new_hire (This will be automatically generated based on the label. The “u_” prefix indicates a custom table.)
    • Extends table: Task (Extending the Task table provides useful fields like State, Assignment Group, Assigned To, etc.)
  4. Click “Submit”.
  5. Now, you need to define the fields for your table. Add these fields:
    • Field Label: First Name
      • Column Name: u_first_name (Automatically generated)
      • Type: String
      • Max Length: 100
    • Field Label: Last Name
      • Column Name: u_last_name
      • Type: String
      • Max Length: 100
    • Field Label: Start Date
      • Column Name: u_start_date
      • Type: Date
    • Field Label: Department
      • Column Name: u_department
      • Type: String
      • Max Length: 100
    • Field Label: Job Title
      • Column Name: u_job_title
      • Type: String
      • Max Length: 100

Step 3: Customize the Form Layout

  1. In the Studio, navigate to the “New Hire” table you just created.
  2. In the table configuration, click on the ‘Configure’ related link.
  3. Then select ‘Form Layout’.
  4. Move the fields you created (First Name, Last Name, Start Date, Department, Job Title) to the “Selected” column.
  5. You can also rearrange the order of the fields as desired.
  6. Click “Save”. This will update the form layout for the “New Hire” table.

Step 4: Create Modules for Easy Access

  1. In the Studio, click on “Create Application File”.

  2. Select Navigation > Module and click “Create”.

  3. Create a module to create new New Hire records:

    • Title: Create New Hire
    • Application Menu: Employee Onboarding
    • Order: 100
    • Link Type: New Record
    • Table: New Hire (u_new_hire)
  4. Create a module to view the list of New Hire records:

    • Title: All New Hires
    • Application Menu: Employee Onboarding
    • Order: 200
    • Link Type: List of Records
    • Table: New Hire (u_new_hire)

Step 5: Testing Your Application

  1. In the ServiceNow interface, navigate to the “Employee Onboarding” application using the application navigator. You should see the modules you created (“Create New Hire” and “All New Hires”).
  2. Click on “Create New Hire” and fill out the form with test data. Click “Submit”.
  3. Click on “All New Hires” to verify that the new record appears in the list.

Step 6: Adding a Business Rule (A Touch of “Low-Code”)

Let’s add a simple business rule to automatically set the “State” field to “Pending Onboarding” when a new “New Hire” record is created.

  1. In the Studio, click on “Create Application File”.

  2. Select Automation > Business Rule and click “Create”.

  3. Enter the following details:

    • Name: Set New Hire State to Pending
    • Table: New Hire (u_new_hire)
    • When to Run:
      • When: Before
      • Insert: Checked
    • Advanced: Checked
  4. In the “Advanced” tab, paste the following code into the “Script” field:

(function executeRule(current, previous /*null when async*/) { // Add your code here current.state = '1'; // '1' usually represents 'Pending Onboarding' - check your State field choices. })(current, previous);
  1. Click “Submit”.

Explanation of the Code:

  • current represents the current record being processed (the “New Hire” record in this case).
  • current.state = '1'; sets the “State” field to the value ‘1’, which corresponds to “Pending Onboarding”. You’ll need to check the choices available for your “State” field and use the appropriate value.

Now, when you create a new “New Hire” record, the “State” field will automatically be set to “Pending Onboarding.”

Key Considerations for Application Development:

  • Planning is Key: Before you start building, clearly define the problem you’re trying to solve and the requirements for your application.
  • Security: Always consider security implications when designing your application. Use roles and access controls to restrict access to sensitive data.
  • User Experience: Design an intuitive and user-friendly interface.
  • Testing: Thoroughly test your application before deploying it to production.
  • Application Scoping: Understand the impact of application scoping and how it affects development.
  • Version Control: Use source control (e.g., Git) to manage your code and track changes.

Conclusion

Congratulations! You’ve taken your first steps into the world of ServiceNow application development. You’ve learned how to create a custom application, design a table, customize a form, add modules, and even implemented a simple business rule. Remember to start with small, manageable projects and gradually increase the complexity as you gain experience. The possibilities are endless! Explore the ServiceNow documentation, experiment with different features, and join the ServiceNow community to learn from other developers. Happy building!

Last updated on