Dataverse-Python-Sdk
Dataverse-Python-Sdk是一款code方向的AI技能,核心价值是# Dataverse SDK for Python — Official Quickstart This instruction summarizes Microsoft Learn guidance for the Dataverse SDK for Python (preview) and provides copyable snippets,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。
# Dataverse SDK for Python — Official Quickstart This instruction summarizes Microsoft Learn guidance for the Dataverse SDK for Python (preview) and provides copyable snippets. ## Prerequisites - Da
mkdir -p ./skills/dataverse-python-sdk && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/dataverse-python-sdk/SKILL.md -o ./skills/dataverse-python-sdk/SKILL.md Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).
Skill Content
# Dataverse SDK for Python — Official Quickstart
This instruction summarizes Microsoft Learn guidance for the Dataverse SDK for Python (preview) and provides copyable snippets.
Prerequisites
- Dataverse environment with read/write
- Python 3.10+
- Network access to PyPI
Install
pip install PowerPlatform-Dataverse-ClientConnect
from azure.identity import InteractiveBrowserCredential
from PowerPlatform.Dataverse.client import DataverseClient
from PowerPlatform.Dataverse.core.config import DataverseConfig
cfg = DataverseConfig() # defaults to language_code=1033
client = DataverseClient(
base_url="https://<myorg>.crm.dynamics.com",
credential=InteractiveBrowserCredential(),
config=cfg,
)- Optional HTTP settings: `cfg.http_retries`, `cfg.http_backoff`, `cfg.http_timeout`.
CRUD Examples
# Create returns list[str] of GUIDs
account_id = client.create("account", {"name": "Acme, Inc.", "telephone1": "555-0100"})[0]
# Retrieve single
account = client.get("account", account_id)
# Update (returns None)
client.update("account", account_id, {"telephone1": "555-0199"})
# Delete
client.delete("account", account_id)Bulk Operations
# Broadcast patch to many IDs
ids = client.create("account", [{"name": "Contoso"}, {"name": "Fabrikam"}])
client.update("account", ids, {"telephone1": "555-0200"})
# 1:1 list of patches
client.update("account", ids, [{"telephone1": "555-1200"}, {"telephone1": "555-1300"}])
# Bulk create
payloads = [{"name": "Contoso"}, {"name": "Fabrikam"}, {"name": "Northwind"}]
ids = client.create("account", payloads)File Upload
client.upload_file('account', record_id, 'sample_filecolumn', 'test.pdf')
client.upload_file('account', record_id, 'sample_filecolumn', 'test.pdf', mode='chunk', if_none_match=True)Paging Retrieve Multiple
pages = client.get(
"account",
select=["accountid", "name", "createdon"],
orderby=["name asc"],
top=10,
page_size=3,
)
for page in pages:
print(len(page), page[:2])Table Metadata Quickstart
info = client.create_table("SampleItem", {
"code": "string",
"count": "int",
"amount": "decimal",
"when": "datetime",
"active": "bool",
})
logical = info["entity_logical_name"]
rec_id = client.create(logical, {f"{logical}name": "Sample A"})[0]
client.delete(logical, rec_id)
client.delete_table("SampleItem")References
- Getting started: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/sdk-python/get-started
- Working with data: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/sdk-python/work-data
- SDK source/examples: https://github.com/microsoft/PowerPlatform-DataverseClient-Python
🎯 Best For
- Engineering teams doing code reviews
- Open source maintainers
- Copywriters
- Marketing teams
- UI designers
💡 Use Cases
- Reviewing pull requests for security vulnerabilities
- Checking code style consistency
- Writing landing page headlines
- Creating email drip sequences
📖 How to Use This Skill
- 1
Install the Skill
Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.
- 2
Load into Your AI Assistant
Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.
- 3
Apply Dataverse-Python-Sdk to Your Work
Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.
- 4
Review and Refine
Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.
❓ Frequently Asked Questions
Does this skill check for OWASP Top 10?
Security-focused review skills often include OWASP checks. Check the skill content for specific vulnerability categories covered.
Can this match my brand voice?
Yes — provide brand guidelines and tone examples in your prompt for consistent output.
Does this work with Figma?
Some design skills integrate with Figma plugins. Check the Works With section for supported tools.
Is Dataverse-Python-Sdk compatible with Cursor and VS Code?
Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.
Do I need specific dependencies for Dataverse-Python-Sdk?
Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.
⚠️ Common Mistakes to Avoid
Blindly accepting AI suggestions
Always verify AI-generated review comments. Some suggestions may not apply to your specific codebase conventions.
Using generic templates
Great copy requires understanding your audience. Customize the skill output for your specific buyers.
Skipping usability testing
AI-generated designs should be validated with real users before development.
Skipping validation
Always test AI-generated code changes, even for simple refactors.