Get the FREE Ultimate OpenClaw Setup Guide →

dataverse-python-quickstart

Scanned
npx machina-cli add skill github/awesome-copilot/dataverse-python-quickstart --openclaw
Files (1)
SKILL.md
652 B

You are assisting with Microsoft Dataverse SDK for Python (preview). Generate concise Python snippets that:

  • Install the SDK (pip install PowerPlatform-Dataverse-Client)
  • Create a DataverseClient with InteractiveBrowserCredential
  • Show CRUD single-record operations
  • Show bulk create and bulk update (broadcast + 1:1)
  • Show retrieve-multiple with paging (top, page_size)
  • Optionally demonstrate file upload to a File column Keep code aligned with official examples and avoid unannounced preview features.

Source

git clone https://github.com/github/awesome-copilot/blob/main/plugins/dataverse-sdk-for-python/skills/dataverse-python-quickstart/SKILL.mdView on GitHub

Overview

This skill provides concise Python snippets to install the Dataverse SDK, instantiate a DataverseClient with InteractiveBrowserCredential, and perform CRUD, bulk, and paging operations. It also demonstrates file uploads to a File column using official patterns.

How This Skill Works

Install via pip PowerPlatform-Dataverse-Client, create a DataverseClient with InteractiveBrowserCredential, then run small examples for single record CRUD, bulk create and bulk update (broadcast and 1:1), and retrieve multiple with paging. It follows official patterns and shows file upload steps.

When to Use It

  • You are starting a Python project to connect to Dataverse
  • You need to perform CRUD on a single record
  • You need to bulk create or bulk update records
  • You want to retrieve multiple records with paging (top and page_size)
  • You want to upload a file to a File column

Quick Start

  1. Step 1: Install the SDK with pip install PowerPlatform-Dataverse-Client
  2. Step 2: Create a DataverseClient using InteractiveBrowserCredential
  3. Step 3: Run concise snippets that cover CRUD, bulk, paging and optional file upload following official patterns

Best Practices

  • Follow the official patterns when creating the DataverseClient and performing operations
  • Use InteractiveBrowserCredential for local development; switch to non interactive credentials for automation
  • Use top and page_size for predictable paging in retrieve multiple
  • Use broadcast for bulk create or bulk updates when mapping many records, and 1:1 for direct field mappings
  • Wrap operations in try/except and log errors, handling permissions and rate limits

Example Use Cases

  • Create a new Account record with the required fields
  • Update the Account name field
  • Bulk create 100 Lead records using broadcast
  • Retrieve Account records with paging using top and page_size
  • Upload a file to a File column on an entity such as Account

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers