This directory contains comprehensive examples demonstrating how to use the PowerPlatform-Dataverse-Client SDK for Python. The examples are organized in a progressive learning path: Install → Learn → Test.
Install the PowerPlatform Dataverse Client SDK:
pip install PowerPlatform-Dataverse-ClientStart here for getting up and running with the SDK:
-
installation_example.py- START HERE 🎯- Package installation validation and import verification
- Method availability checking and troubleshooting
- Basic usage examples and code patterns
- Optional interactive testing with real environment
- Perfect for first-run validation after installation
-
functional_testing.py- TEST BASIC FUNCTIONALITY 🧪- Simple functional testing in real Dataverse environments
- Basic CRUD operations validation with clean patterns
- Table creation and basic querying tests
- Interactive cleanup and straightforward validation
- Perfect for verifying SDK works in your environment
Deep-dive into production-ready patterns and specialized functionality:
-
walkthrough.py- COMPREHENSIVE DEMO 🚀- Full SDK feature demonstration with production-ready patterns
- Table creation with custom schemas and enums
- Single and bulk CRUD operations with error handling
- Advanced querying (SQL and OData) with paging
- Column metadata management and multi-language support
- Interactive cleanup and best practices
-
file_upload.py- FILE OPERATIONS 📎- File upload to Dataverse file columns with chunking
- Advanced file handling patterns
Follow this recommended progression for the best learning experience:
# Install the SDK and dependencies
pip install PowerPlatform-Dataverse-Client azure-identity
# Validate installation and imports
python examples/basic/installation_example.py# Basic functional testing in your environment
python examples/basic/functional_testing.py# Comprehensive walkthrough with production patterns
python examples/advanced/walkthrough.py- New to the SDK? → Start with
examples/basic/installation_example.py - Need to test/validate? → Use
examples/basic/functional_testing.py - Want to see all features? → Run
examples/advanced/walkthrough.py - Building production apps? → Study patterns in
examples/advanced/walkthrough.py
- Python 3.10+
- PowerPlatform-Dataverse-Client SDK installed (
pip install PowerPlatform-Dataverse-Client) - Azure Identity credentials configured
- Access to a Dataverse environment
All examples use Azure Identity for authentication. Common patterns:
InteractiveBrowserCredentialfor development and interactive scenariosDeviceCodeCredentialfor development on headless systemsClientSecretCredentialfor production services with service principals
For detailed API documentation, visit: Dataverse SDK Documentation
When adding new examples:
- Follow the existing code style and structure
- Include comprehensive comments and docstrings
- Add error handling and validation
- Update this README with your example
- Test thoroughly before submitting