SampleDataGeneratorPlugin 1.1.0.1

Requires NuGet 1.1.0.1 or higher.

dotnet add package SampleDataGeneratorPlugin --version 1.1.0.1
                    
NuGet\Install-Package SampleDataGeneratorPlugin -Version 1.1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SampleDataGeneratorPlugin" Version="1.1.0.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SampleDataGeneratorPlugin" Version="1.1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="SampleDataGeneratorPlugin">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SampleDataGeneratorPlugin --version 1.1.0.1
                    
#r "nuget: SampleDataGeneratorPlugin, 1.1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SampleDataGeneratorPlugin@1.1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SampleDataGeneratorPlugin&version=1.1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=SampleDataGeneratorPlugin&version=1.1.0.1
                    
Install as a Cake Tool

Sample Data Generator Plugin

Generates realistic sample records for Dataverse (XrmToolBox) entities using Bogus.
Supports three modes per attribute: Random, Regex, and Fixed (including lookups), plus import/exportable JSON configs and one-click templates.


Features

  • Locale-aware data (names, addresses, phone numbers, etc.)
  • Random mode: generates realistic values by attribute or type
  • Regex mode: supply a regular expression to generate string data
  • Fixed mode: pick a single literal (string, number, Boolean, date, picklist, lookup)
  • Batch creation using ExecuteMultipleRequest for high performance
  • Import / Export your attribute configurations to JSON
  • Templates: one-click presets for common entities (Account, Contact, Lead, etc.)
  • Memo editor: full-screen input for multi-line “Memo” fields

Prerequisites

  • XrmToolBox v1.2024+
  • Microsoft .NET Framework 4.8
  • References in your plugin project:
    • Bogus (v32.0.2)
    • Fare (v2.1.0)

Installation

  1. Download the latest release DLL (e.g. SampleDataGeneratorPlugin.dll).
  2. Copy it into your XrmToolBox “Plugins” folder.
  3. Restart XrmToolBox.
  4. In the Plugins menu, choose Sample Data Generator Plugin.

Quick Start

  1. Connect to your Dataverse org via the XrmToolBox connection dialog.
  2. In the plugin:
    • Locale: choose your Faker locale for culturally appropriate data.
    • Entity: select the logical name of the table you want to seed.
    • Available Attributes: double-click or use “>>” to add fields.
  3. In the Attribute Grid:
    • Mode: pick Random, Regex, or Fixed for each attribute.
    • Regex: type your pattern (e.g. ^[A-Z]{3}-\d{4}$).
    • Fixed: click “…” to pick a lookup or enter a literal value.
  4. Number of Records: set how many records to create (1–1000).
  5. Click Generate Sample Data.

Templates

Under Templates ▾ on the toolbar, choose a preset:

  • Account
  • Contact
  • Lead

This will auto-load a curated list of attributes in Random mode. You can then tweak as needed.


Import / Export Configuration

  • Export Config: saves your current entity, locale, and attribute settings to a JSON file.
  • Import Config: loads a previously exported JSON, restoring the grid and locale selection.

Use these to share sample-data specs across your team.


Advanced

  • Customize Faker

    • Edit FakerGeneratorRegistry to register your own attribute-level or type-level generators.
    • JSON-driven templates can be extended by dropping new definitions into Templates.json.
  • Respecting MaxLength

    • String outputs are automatically truncated to the CRM metadata’s MaxLength to avoid errors.
  • Batch vs. Single

    • By default uses ExecuteMultipleRequest for efficiency.
    • The legacy single-create handler is still available if you need it.

Installation

  1. Clone or download the repo:
    git clone https://github.com/kailashr2k3/SampleDataGeneratorPlugin.git
    
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0.1 241 6/29/2025
1.1.0 144 6/29/2025
1.0.0.12 144 6/29/2025
1.0.0.11 137 6/24/2025
1.0.0.10 73 6/7/2025
1.0.0.9 148 5/11/2025

Initial release with core generation modes, lookup picker, templates, import/export.