SkillAgentSearch skills...

Rnwood.Dataverse.Data.PowerShell

A PowerShell module for interacting with Microsoft Dataverse.

Install / Use

/learn @rnwood/Rnwood.Dataverse.Data.PowerShell
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Rnwood.Dataverse.Data.PowerShell

Rnwood.Dataverse.Data.PowerShell

A PowerShell module for connecting to Microsoft Dataverse (used by Dynamics 365 and Power Apps) to query and manipulate data, solutions and customisations.

This module works in PowerShell Desktop and PowerShell Core, supporting Windows, Linux, and macOS.

Features

  • Creating, updating, upserting and deleting records, including M:M records
  • Simple PowerShell objects for input and output instead of complex SDK Entity classes
    • Automatic data type conversion using metadata - use friendly labels for choices and names for lookups
    • Automatic lookup conversion - use record names instead of GUIDs (when unique)
  • On behalf of (delegation) support for create/update operations
  • Duplicate detection support for create/update/upsert operations
  • Full support for automatic paging
  • Concise PowerShell-friendly hashtable-based filters with grouped logical expressions (and/or/not/xor) and arbitrary nesting
  • Batching and parallelisation support for efficient bulk operations
  • Auto-retries support in many cmdlets
  • Comprehensive metadata operations
    • Create, read, update, and delete entities, attributes, option sets, and relationships
    • manipulate model-driven apps, forms, views
    • manipulate solutions and solution components
  • Full plugin lifecycle management
    • Upload and manage plugin assemblies and packages
    • Register plugin types, steps, and images with tab completion support
    • Dynamic plugin development with on-the-fly C# compilation and Visual Studio project export for IDE-based development

Note: On-premise Dataverse environments are not supported.

Quick Start

Installation

# Set execution policy (one-time setup)
Set-ExecutionPolicy –ExecutionPolicy RemoteSigned –Scope CurrentUser

# Install module
Install-Module Rnwood.Dataverse.Data.PowerShell -Scope CurrentUser

For detailed installation instructions, including versioning, see Installation Guide.

Basic Usage

# Connect to Dataverse and set as default
# omit the -Url for a menu
Get-DataverseConnection -url https://myorg.crm11.dynamics.com -interactive -setasdefault

# Query records
Get-DataverseRecord -TableName contact -FilterValues @{ lastname = 'Smith' }

# Create a record
Set-DataverseRecord -TableName contact -InputObject @{ 
    firstname = 'John'
    lastname = 'Doe'
    emailaddress1 = 'john.doe@example.com'
} -CreateOnly

# Update a record
Set-DataverseRecord -TableName contact -Id $contactId -InputObject @{ 
    description = 'Updated via PowerShell'
}

# Delete a record
Remove-DataverseRecord -TableName contact -Id $contactId

For more advanced scenarios including metadata and customisations, see the documentation section below.

Documentation

Getting Started

Core Concepts

Advanced Topics

Common Use Cases

  • Use Cases - Real-world scenarios including CI/CD pipelines, data import/export, mass updates, and source control management

Reference

Main Cmdlets

Data Operations

Advanced Operations

Advanced Operations

Record Access Management

View Management

App Module Management

App Module Component Management

Web Resource Management

Sitemap Management

Related Skills

View on GitHub
GitHub Stars20
CategoryDevelopment
Updated24d ago
Forks3

Languages

C#

Security Score

95/100

Audited on Mar 15, 2026

No findings