dataverse-environment-variables
Installation
SKILL.md
Dataverse Environment Variables
Use this skill when a user needs to create environment variables in a Dataverse solution — especially DataSource bindings for SharePoint or when they need values to not export with the solution ZIP.
Principles
- Always create environment variables inside a solution, never loose in the environment.
- Always set the current value (
environmentvariablevalueentity), not thedefaultvalueon the definition, for live environment data. - For SharePoint-backed canvas apps, always use DataSource type (
100000004) instead of Text — it gives the app a connector-aware binding. - After
AddSolutionComponent, immediately remove type-381 (value) components from the solution to set Export=No and prevent values from travelling with the ZIP. - Never store secret values in environment variable current values — use Secret type (
100000005) backed by Azure Key Vault. - Confirm list GUIDs before creating DataSource list definitions — the value must be the SharePoint list GUID, not the display name.