Data Generation Profiles in Developer Sandboxes

  • Release version: Zurich
  • Updated August 11, 2025
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Data Generation Profiles in Developer Sandboxes

    Data Generation Profiles are essential for creating realistic test data in Developer Sandboxes, which only copy metadata, not actual record data from the base instance. These profiles help populate your sandbox with necessary data to build and test applications effectively without using real data.

    Show full answer Show less

    Key Features

    • Data Selection: Choose specific tables to sample data from, enabling targeted generation.
    • Mapping Capabilities: Create mappings that populate sandboxes with curated data, including the ability to run Business Rules to generate additional records automatically.
    • Flexible Definitions: Each Data Generation Profile can target multiple tables and define how many records to generate, which fields to populate, and specify actions for data generation.
    • Field Mappings: Establish relationships between different definitions to control the details of generated data while automating the process.
    • Custom Actions: Define new actions via a scripted API for tailored data generation, especially for protecting Personally Identifiable Information (PII).

    Key Outcomes

    By utilizing Data Generation Profiles, ServiceNow customers can expect to efficiently create a realistic development environment with the necessary data to test and build applications, ensuring that their testing processes are robust while safeguarding sensitive information.

    Because Developer Sandboxes copy metadata, not record data, from the base instance, you might need to generate specific data using a Data Generation Profile.

    Data Generation Profile overview

    Data Generation Profiles help you create test data for sandboxes. They work by:
    • Selecting specific tables to sample data from
    • Creating mappings to populate your sandbox with the necessary data
    • Providing the data needed to build and test your application
    Data Generation Profiles generate realistic test data for your development environment, making it easier to build and test your application without using real data.

    When generating data, Developer Sandboxes doesn't copy all the instance data. Data Generation Profiles enable a statistical sampling of data from selected tables with curated mappings to populate the sandbox with the data needed for building an application. Data Generation Profiles can also call definitions that run Business Rules to automatically create additional data when a record is generated.

    Data Generation Profiles define the tables and fields that you want data populated in for development purposes. For example, the [sys_user] table might need ten Service Desk users added to it for development and testing.

    A Developer Sandboxes Data Generation Profile uses the definition of a data model, which you must also create. A Data Generation Definition is a JSON file that's stored as an attachment. The data model collects the defined details from the existing table to generate data and populates it with specified data based on the number of records in the Data Generation Profile.

    Data Generation Profile and tables

    Data Generation Definitions are the tables that you want data to be configured in. You can do the following:
    • Provide a name for the Data Generation Profile definition
    • Select the table to generate data in
    • Change the number of records to display
    • Specify that the definition runs business rules
    • Choose the date and time for the records

    You can create a Data Generation Profile that can target multiple tables. Each table definition can map fields to either generated, template, or literal values, and the remaining categorical values will be populated from a statistical table model built using the last 1000 records created in that table.

    Data Generation Profile field mappings

    Data Generation Profile field mappings enable you to specify the relationships between the different definitions. This semi-curated approach of data generation field mappings creates some control over the details of generated data while still automating the bulk of the process.

    Data Generation Profile actions

    Data Generation Profile actions enable you to generate fake or random data that fits your criteria. There are several actions that can generate fake usernames, IDs, emails, and phone numbers.

    Additionally, new actions can be defined via a scripted API to provide customer-specific methods of data generation. New actions can help populate fields where the statistical model is not quite adequate, or where Personally Identifiable Information (PII) needs to be protected.