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
<PackageReference Include="SampleDataGeneratorPlugin" Version="1.1.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="SampleDataGeneratorPlugin" Version="1.1.0.1" />
<PackageReference Include="SampleDataGeneratorPlugin"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add SampleDataGeneratorPlugin --version 1.1.0.1
#r "nuget: SampleDataGeneratorPlugin, 1.1.0.1"
#:package SampleDataGeneratorPlugin@1.1.0.1
#addin nuget:?package=SampleDataGeneratorPlugin&version=1.1.0.1
#tool nuget:?package=SampleDataGeneratorPlugin&version=1.1.0.1
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
- Download the latest release DLL (e.g.
SampleDataGeneratorPlugin.dll
). - Copy it into your XrmToolBox “Plugins” folder.
- Restart XrmToolBox.
- In the Plugins menu, choose Sample Data Generator Plugin.
Quick Start
- Connect to your Dataverse org via the XrmToolBox connection dialog.
- 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.
- 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.
- Number of Records: set how many records to create (1–1000).
- 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
.
- Edit
Respecting MaxLength
- String outputs are automatically truncated to the CRM metadata’s
MaxLength
to avoid errors.
- String outputs are automatically truncated to the CRM metadata’s
Batch vs. Single
- By default uses
ExecuteMultipleRequest
for efficiency. - The legacy single-create handler is still available if you need it.
- By default uses
Installation
- Clone or download the repo:
git clone https://github.com/kailashr2k3/SampleDataGeneratorPlugin.git
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
- XrmToolBox (>= 1.2024.9.69)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release with core generation modes, lookup picker, templates, import/export.