This skill provides guidance on using the PowerPlatform Dataverse Client SDK for Python. Use when users ask about "Dataverse SDK", "Dataverse Python", "DataverseClient", "Dataverse authentication", "Dataverse CRUD operations", "create Dataverse records", "query Dataverse", "Dataverse connection", or need help with the Microsoft Dataverse Python SDK.
Provides guidance on using the PowerPlatform Dataverse Client SDK for Python.
/plugin marketplace add Sahib-Sawhney-WH/dapr-claude-plugin/plugin install sahib-sawhney-wh-dataverse-plugins-dataverse@Sahib-Sawhney-WH/dapr-claude-pluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/auth-patterns.mdreferences/crud-examples.mdreferences/error-handling.mdThis skill provides guidance on using the PowerPlatform Dataverse Client SDK for Python. Use when users ask about "Dataverse SDK", "Dataverse Python", "DataverseClient", "Dataverse authentication", "Dataverse CRUD operations", "create Dataverse records", "query Dataverse", "Dataverse connection", or need help with the Microsoft Dataverse Python SDK.
Install the SDK:
pip install PowerPlatform-Dataverse-Client azure-identity
Basic setup:
from azure.identity import InteractiveBrowserCredential
from PowerPlatform.Dataverse.client import DataverseClient
credential = InteractiveBrowserCredential()
client = DataverseClient("https://yourorg.crm.dynamics.com", credential)
from azure.identity import InteractiveBrowserCredential
credential = InteractiveBrowserCredential()
Opens a browser window for user to sign in. Best for development and testing.
from azure.identity import DeviceCodeCredential
credential = DeviceCodeCredential()
Displays a code to enter on a separate device. Use for servers without browsers.
from azure.identity import ClientSecretCredential
credential = ClientSecretCredential(
tenant_id="your-tenant-id",
client_id="your-app-id",
client_secret="your-secret"
)
Service principal authentication for automated processes. Requires Azure app registration.
# Single record
account_ids = client.create("account", {"name": "Contoso Ltd"})
account_id = account_ids[0]
# Multiple records (bulk)
payloads = [
{"name": "Company A"},
{"name": "Company B"},
]
ids = client.create("account", payloads)
# Single record by ID
account = client.get("account", account_id)
# Query with filters
pages = client.get(
"account",
select=["name", "telephone1"],
filter="statecode eq 0",
top=100
)
for page in pages:
for record in page:
print(record["name"])
# Single update
client.update("account", account_id, {"telephone1": "555-0199"})
# Bulk update
client.update("account", ids, {"industry": "Technology"})
# Single delete
client.delete("account", account_id)
# Bulk delete
client.delete("account", ids, use_bulk_delete=True)
from PowerPlatform.Dataverse.core.errors import HttpError, ValidationError
try:
client.get("account", "invalid-id")
except HttpError as e:
print(f"HTTP {e.status_code}: {e.message}")
if e.is_transient:
print("Retry may succeed")
except ValidationError as e:
print(f"Validation error: {e.message}")
"account", "new_MyTable")"new_", "cr123_")references/auth-patterns.md for detailed authentication examplesreferences/crud-examples.md for comprehensive CRUD patternsreferences/error-handling.md for error handling best practicesThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.