Deila með


Deploy Fundraising and Engagement manually

Important

Fundraising and Engagement is being retired. Support for Fundraising and Engagement will end at 11:59 PM Pacific Time on December 31, 2026. For more information, go to What’s new in Fundraising and Engagement.

The following instructions guide you through the manual steps to configure Fundraising and Engagement. We recommend using the Microsoft Cloud for Nonprofit installer instead of deploying manually.

If you choose the manual deployment approach, follow the initial steps to configure Azure and download Fundraising and Engagement from Microsoft Cloud Solution Center in Deploy Fundraising and Engagement with the installer (recommended). After completing these steps, you can return here to continue manual deployment.

Record the host part of the URL for your Dynamics 365 Sales instance

The Azure components configuration requires the Dynamics 365 Sales URL. The required value has the following format (your instance name appears instead of <instancenameasdisplayed>):

https://<instancenameasdisplayed>.api.crm.dynamics.com

You can find the URL in your environment under Advanced Settings > Customizations > Developer Resources:

  1. Go to Power Platform Admin Center.

  2. Select Environments from the left navigation.

  3. Select the environment where you have installed Fundraising and Engagement.

  4. Select the Environment URL. The Dynamics 365 environment should open in a new tab.

  5. In the Dynamics 365 environment, select the gear icon on the top right and select Advanced Settings. The Advanced Settings page should open in a new tab.

    Open Advanced Settings.

  6. Open the Customizations page.

    Open Customizations.

  7. Select Developer Resources. You can find the URL under Instance Web API.

    Record host part of URL.

  8. Record the host part (everything up to and including .com).

Verify the Azure environment is in the right tenant

The Azure environment where you create the ARM template components must be in the same Microsoft 365 Microsoft Entra ID controlled tenant. The Azure environment relies on server-to-server authentication using the application record in Microsoft Entra ID, so the user must be visible to your Fundraising and Engagement for Dynamics 365 Sales solution instance.

Install Azure CLI

Azure CLI is required to obtain a Dynamics access token later on. If you don't have Azure CLI already, install Azure CLI on your local computer.

Record managed identity details for communication from Azure to Dataverse

To allow access from Azure services to Dataverse, you need to configure an application user. Before you can do that, you need to record the Client ID of the automatically created managed identity (for example, Contoso-azure2dataverse-prod).

  1. Open the Azure portal. Sign in if prompted.

  2. Open the resource group (the one selected in the Solution Center deployment), and select the managed identity (for example, Contoso-azure2dataverse-prod).

  3. Record the Client ID from the Overview page.

    A red box around Client ID denoting that value should be copied.

Create application user and assign role

  1. Go to Power Platform Admin Center.

  2. Select Environments from the left navigation.

  3. Select the environment where you have installed Fundraising and Engagement.

  4. Select the Settings button in the command bar.

  5. Expand the section Users + permissions, and then select the option Application users.

  6. Select New app user from the command bar.

    • Select the Application automatically created inside the resource group. You can use the recorded Client ID to help filtering.
    • For Business unit, you should use a root business unit. Typically, you use the name of the environment.
    • In Security roles, select FundraisingandEngagement: Azure App User.
    • Create an application user by selecting Create.

    The UI for creating an application user.

Assign column security profile to the application user

After you create the application user, assign the Fundraising and Engagement Azure App User column security profile to it.

  1. Go to Power Platform Admin Center.

  2. Select Environments from the left navigation.

  3. Select the environment where you have installed Fundraising and Engagement.

  4. Select the Settings button on the command bar.

  5. Expand the section Users + permissions, and then select the option Column Security Profiles.

    View column security profiles.

  6. Open the Fundraising and Engagement Azure App User profile and navigate to the Users tab.

  7. Select Add Users.

    Add user for column security profile.

  8. In the search bar, paste the recorded Client ID and select the application user that you created for Fundraising and Engagement in the previous section.

    Add application user for column security profile using client ID.

  9. Select the Add button.

Add Azure SQL user accounts

You need to set up the application SQL user account within the Azure SQL database.

Assign application access to Azure SQL Database

  1. Make sure you've initiated Azure Cloud Shell and downloaded all scripts for latest release as specified in the section Configure Azure Cloud Shell.

  2. Open Azure Cloud Shell.

  3. Run the following command in Cloud Shell, but replace <RESOURCE_GROUP> with the name of the resource group where you installed Fundraising and Engagement.

    bash ./assign-managed-identity.sh -g <RESOURCE_GROUP>
    

Populate the Azure SQL Database schema

  1. Open query editor within Azure portal. Locate the editor by navigating to the new database named <client_name>-db-<env> installed within your resource group.

  2. Connect as yourself (Microsoft Entra ID authentication). For more information and troubleshooting, go to Quickstart: Use the Azure portal's query editor (preview) to query an Azure SQL Database.

  3. Download the file named ef-migrations.sql from the provided link.

  4. Paste the contents of the ef-migrations.sql file into the query window and then select Run. The query should finish within about 15 seconds.

    Note

    You may need to allow your current IP address.

Post-deployment tasks (Dynamics 365)

Follow these steps after you set up the Fundraising and Engagement Dynamics 365 environment. At least one configuration record populated with the Azure information is required. All system users must have a configuration record assigned to their user record before use.

Assign security roles

You need to do some configuration to use all features of Fundraising and Engagement. In particular, you must create the configuration record. If this task isn't done by a user with the system administrator role, the user needs both the appropriate role and column security profile:

  • The FundraisingandEngagement: System Administrator role.

    System administrator role to be applied.

  • The Fundraising and Engagement credentials column security profile (managed in the Power Platform admin center in the environment under Settings > Users + permissions > Column Security Profiles).

    Column security profiles.

Create a configuration record in Fundraising and Engagement

  1. Go to Power Platform Admin Center.

  2. Select Environments from the left navigation.

  3. Select the environment where you have installed Fundraising and Engagement.

  4. Select the Environment URL to open the Dynamics 365 environment.

  5. Open Fundraising and Engagement from the tile.

  6. In the navigation pane, select Configuration from the Change area menu.

  7. Under Settings, select Configurations.

    Create configuration record.

  8. Select New, enter the Display Name, set Default Configuration to On, then select Save to save the new configuration record.

Set up payment service webhook

Connecting to Azure Payment Service requires registration of a webhook in Dynamics 365. To configure the webhook, you must obtain a token for connecting to Dynamics 365, and then run a script in Cloud Shell.

Obtain Dynamics 365 access token

  1. Make sure you have the Azure CLI installed on your computer.

  2. Open a command line (for example, by running PowerShell).

  3. Run the following commands in the shell, using your CRM organization URL instead of <CRM URL>:

    az login --output none
    az account get-access-token --resource='<CRM URL>' --query accessToken -o tsv
    

    Example output:

    Review example of Dynamics 365 access token.

  4. Copy the token from the command shell (the part starting with the letters ey). Make note of it for use when you configure the webhook in the next section.

Configure payment service webhook from Azure

To prepare, make note of the following values:

  • <RESOURCE_GROUP>: the resource group name where Fundraising and Engagement is deployed.
  • <CRM URL>: the URL of your Dynamics 365 environment.
  • The access token you obtained in the preceding section.
  1. Make sure you've initiated Azure Cloud Shell and downloaded all scripts for the latest release as specified in Configure Azure Cloud Shell.

    Important

    Don't skip this step, because it will affect functionality in the app.

  2. Open Azure Cloud Shell.

  3. In the top-left corner, select Bash.

  4. Run the following commands in Cloud Shell, swapping in your values for <RESOURCE_GROUP> and <CRM URL>:

    bash ./setup-webhook.sh --group <RESOURCE_GROUP> --url'<CRM URL>'
    

    Note

    If you don't run this webhook script, you'll get an error when setting up the Azure function YearlyGivingFromEntity.

  5. When the script runs, you might need to Enter your Dynamics Access Token. Enter the token you retrieved in the previous task, Obtain Dynamics 365 access token.

    Note

    Cloud Shell uses the keyboard shortcut Shift+Insert (not CTRL+V) to paste values from the clipboard.

Configuration record prerequisites

The configuration record requires values for the following Azure-dependent configuration settings before it can be used. Use the steps listed with each setting to get your org's values from the Azure Background Functions app. The labels of the following options match the label of the configuration record in Fundraising and Engagement.

  1. Open the Background Services Configuration tab in your newly created configuration record.

    Background services configuration tab.

  2. Background Services Web Job URL:

    Background services web job URL.

    1. Locate the Azure Background Functions application within your resource group in Azure portal.

    2. Under Overview, view the URL.

    3. Paste the URL into the Background Services Web Job URL field as is. The full URL must read:

      https://fundraising-<yourbackgroundservcies>-dev.azurewebsites.net
      
  3. Bank Run Security Key:

    Bank run security key.

    1. Locate the Azure Background Functions application.

    2. Under Functions, select Functions.

      Background services functions.

    3. Navigate to and select the BankRun function.

    4. After the function opens in the new window, select Overview.

    5. Select Get Function Url.

    6. Copy the code parameter from the URL that appears (the part of the URL that follows the text "?code=").

    7. Update the Bank Run Security Key value with the copied URL value. The result should resemble the following (your exact value is different):

      SdPgNdTKyUMEZe2BCHsdkcmonm4t8ngfnwmc2o5Pu99g78ks7RzuiHnmODbECfPSQ==

    For more information, go to Obtaining keys.

  4. Yearly Giving Security Key:

    Yearly giving security key.

    1. In the Azure Background Functions application, under Functions, select Functions.

    2. Find and select the YearlyGivingFromEntity function.

    3. In the new window where the function opens, select Overview.

    4. Select Get Function Url.

    5. Copy the code parameter from the URL that appears (the part of the URL that follows the text "?code=").

    6. Update the Yearly Giving Security Key value with the code you copied. It should resemble the following (your value is a bit different):

      a5RSdPgNdTKyUMEZe2BCHsdkcmonm4t8ngfnwmc2o5Pu99g78ks7RzuiHnmODbECfPSQ==

      Note

      If you get a Value cannot be null error, it is because the webhook script step was missed. Run the webhook script and try again.

  5. Event Receipting Security Key

    Event receipting security key.

    1. In the Azure Background Functions application, under Functions, select Functions.

    2. Find and select the EventReceipting function.

    3. Once the function opens in the new window, select Overview.

    4. Select Get Function Url.

    5. Copy the code parameter from the URL that appears (the part of the URL that follows the text "?code=").

    6. Update the Event Receipting Security Key value with the code you copied. It should resemble the following (your value is a bit different):

      a5RSdPgNdTKyUMEZe2BCHsdkcmonm4t8ngfnwmc2o5Pu99g78ks7RzuiHnmODbECfPSQ==

  6. Save the updated configuration record.

Assign configuration settings to Dynamics 365 users

All users who need to interact with the Fundraising and Engagement business logic must have a configuration record assigned, including the application user previously configured. A user can only have one configuration record assigned at any one time. To associate a configuration record to a user in Dynamics 365, sign in to Dynamics 365 as a user who has the System Administrator role and complete the following steps.

  1. Navigate to Advanced Settings.

  2. Navigate to System, and then select Security.

    Security setting in System.

  3. Select Users.

    Select Users.

  4. Do these steps for each user who uses Fundraising and Engagement:

    1. Find and open the user record.

    2. Select the Fundraising and Engagement: User view.

      Select Fundraising and Engagement: User.

    3. Use the lookup control to set the correct configuration record in the Configuration field, and then select Save and Close.

      Set configuration record.

Set up application version

For the Fundraising and Engagement application to work properly, it must have an Application Version record set in the Organization Settings Dataverse table.

  1. Make sure you've initiated Cloud Shell and downloaded all scripts for the latest release as specified in Configure Azure Cloud Shell.

  2. Open Azure Cloud Shell.

  3. In the top left corner, select Bash.

  4. Run the following commands in Cloud Shell, swapping in your value for <CRM URL>, where <CRM URL> is the URL of your Dynamics 365 environment:

    bash ./setup-app-version.sh --url '<CRM URL>'
    
  5. When the script runs, you might need to Enter your Dynamics Access Token. Enter the token you retrieved in the previous task, Obtain Dynamics 365 access token.

    Note

    Cloud Shell uses the keyboard shortcut Shift+Insert (not CTRL+V) to paste values from the clipboard.

Next steps

After successful deployment and configuration of Fundraising and Engagement, there are optional steps to set up credit card payments and import data. These steps are the same whether you use the Microsoft Cloud for Nonprofit installer or follow the manual steps.

To complete your deployment, go to Post-deployment configuration for Fundraising and Engagement.