Create a Data Generation Profile
Create a Data Generation Profile to generate data such as incidents or users for your sandbox. Data Generation Profiles are associated with Developer Sandboxes Templates, so they can run and generate synthetic development data when a sandbox is allocated.
About this task
Developer Sandboxes can't copy all instance data. Data Generation Profiles enable you to generate fake data, but not your sensitive data, for building and testing an application.
For more information on Data Generation Profiles, see Data Generation Profiles in Developer Sandboxes.
Before you begin
Role required: admin
Configure the
glide.data.generation.excluded.tables property to create a comma separated list of tables to exclude from data generation.Note:
You must configure a Data Generation Profile before you can add it
to a Developer Sandboxes Template.
Procedure
- Navigate to All > Data Generation > Data Generation Profiles.
-
Select New.
Figure 1. Data Generation Profiles home -
Enter a name and select Submit.
Figure 2. Submit the profile -
Navigate back to Data Generation Profiles and select your newly created profile from the list.
Figure 3. New profile in list -
Select New in the Data Generation Definitions related list of the Data Generation Profile record.
Figure 4. New related list -
On the form, fill in the fields.
Table 1. Data Generation Definition fields Field Description Name Name of the definition. For example, Service Desk Users. Table Table that contains the data you want to use for the definition. For example, [sys_user]. Application Scope of the data definition. Number of records Number of records that need to be generated for the definition. Earliest Date of the earliest record in the definition. Latest Date of the latest record in the definition. -
Select Submit.
Figure 5. Submit new Data Generation record -
Configure field mappings for your definition by selecting the definition from the related list.
You don't need to map every field, but you can create mappings to curate data for specific types of development.
Figure 6. Select definition from list -
Select New in the Data Generation Field Mappings related list.
Figure 7. Add new mappings -
On the form, fill in the fields.
Table 2. Data Generation Field Mapping incident example Field Description Field Type of data for field. For example, User ID. Operation Type of operation for the mapping. The options are: - To - Map a literal value to the target field.
- Generate - Use the specified data generation action to create a value.
- From template - Use a value generated by another template, such as to create relationships. For example, if you're creating users from the user table for a Service Desk, you also want to add those users to the Service Desk user group.
Value Value the field is mapped to, if you selected To as the Operator. Action Type of action is you selected Generate as the Operator. You can view other actions and create custom actions by navigating to All > Data Generation > Data Generation Actions. Template Template to use for the mapping, if applicable. Table Table the mapping applies to. Note:You must specify a table that contains data, otherwise the data generation will fail.Definition Definition the mapping applies to. Selection type How the records will be generated: - Random
- Sequential
-
Select Submit.
Figure 8. Map the field
-
Select New in the Data Generation Field Mappings related list.
Result
The Data Generation Profile is available to add to a Developer Sandboxes template.