The Common Data Model for Nonprofits, Fundraising, Grant Management, Outcome Management, and Volunteer Management are solutions built on Dataverse. The process to build and deploy is the same for each of these solutions.
This repository contains multiple Dataverse solutions. Always ensure you are in the correct solution folder. Follow the steps below to build and deploy the solution into a Power Platform environment.
Before building or deploying a Dataverse solution, ensure you have the following installed:
Tool | Version | Installation Link |
---|---|---|
.NET SDK | 4.6.2 or later | Install Guide |
.NET | Latest | Install Guide |
Power Platform CLI | Latest | Install Guide |
Node.js | 18.18.0 or later | Install Guide |
pac auth create
(e.g., username/password, client ID & secret, certificate-based auth).Before installing Fundraising, Outcome Management, Grant Management, or any other nonprofit solutions based on Dataverse, ensure that the Common Data Model (CDM) for Nonprofits is installed first.
This ensures compatibility and proper data structure alignment for all dependent solutions.
Follow these steps to build the solution using .NET and Power Platform CLI.
Win + R
, type cmd
, and hit Enter
.Win + X
, then selecting Windows Terminal.cd SOLUTION_NAME
dotnet restore
For creating an unmanaged solution, run:
dotnet build
For creating a managed solution, run:
dotnet build --configuration Release
This will build the solution and prepare files for deployment to your Power Platform environment.
bin/Debug
.bin/Release
.Run the following command to authenticate:
pac auth create
Run one of the following commands to import the solution into your Dataverse environment. Replace SOLUTION_NAME with the solution name that you would like to import and YOUR_ENVIRONMENT_URL with your Power Platform environment url.
pac solution import --path bin/Debug/SOLUTION_NAME.zip --environment https://YOUR_ENVIRONMENT_URL --publish-changes
Use --publish-changes
to ensure all changes are applied in Dataverse when importing an unmanaged solution.
pac solution import --path bin/Release/SOLUTION_NAME_managed.zip --environment https://YOUR_ENVIRONMENT_URL
After importing the solution, verify that it is successfully imported:
If the solution is not listed or has errors, check the Import History for details.
Authentication issues?
pac auth list
to verify authentication.pac auth delete --index <number>
to remove incorrect auth profiles.Build errors?
dotnet --version
).dotnet restore
.Import issues?
If you have any questions, feel free to create an issue in the repository. 🚀