Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

NfP365 CRM API

Security covered Maintenance fixes only

This module provides developers with the ability to integrate Drupal with NfP 365 CRM, a Microsoft Dynamics 365 solution for non-profits. It allows for connectivity to the OpenAPI and WebAPI, enabling access to resources like donations, orders, and campaigns. A debug mode is also available for logging API requests and responses.

NfP365 CRM API is a module for developers to integrate Drupal with NfP 365 CRM — Microsoft Dynamics 365 designed for the Non-for-Profit sector.

It provides connectivity to the following APIs offered by Mhance (a Microsoft Solutions Partner):

  • WebAPI
  • OpenAPI

Each API includes resources such as Donations, Orders, Campaigns, etc.

Setup

After installing the module, you must provide credentials for both the OpenAPI and WebAPI.

Go to: /admin/config/services/nfp365-crm-api and enter the required credentials.

Debug Mode

On the same configuration page (/admin/config/services/nfp365-crm-api), you can enable Debug Mode.

When Debug Mode is enabled, Drupal logs all requests and responses made using the API connection.

Examples

// Request via OpenApi client.
/* @var \Drupal\nfp365_crm_api\Http\OpenApiClient $openApi */
$openApi = \Drupal::service('nfp365_crm_api.manager')->getOpenApiClient();
$response = $openApi->paymentProcessors()->all();
foreach ($response->PaymentProcessors as $paymentProcessor) {
  // Process each payment processor.
}

// Request via WebApi client.
/* @var \Drupal\nfp365_crm_api\Http\WebApiClient $webApi */
$webApi = \Drupal::service('nfp365_crm_api.manager')->getWebApiClient();
$response = $webApi->campaigns()->all();
$campaigns = $response->getData();
foreach ($campaigns as $campaign) {
  // Process each campaign.
}

// Additional methods for $response are also available.
$response->getStatusCode();   // Returns HTTP status code (e.g., 200)
$response->getReasonPhrase(); // Returns HTTP reason phrase (e.g., 'OK')
// etc...

How to Add a New Resource

An example for OpenAPI:

  1. Create a class and place it in the /src/Resources/OpenAPI/ folder. You can find existing examples there for reference.
  2. Add a new method to the /src/Http/OpenApiClient.php file.
Drupal 8–11

Ask your assistant about NfP365 CRM API

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
10
Tracked since
Aug 2023
Latest release
2 months ago
Releases (12 mo)
3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.4 Stable 8–11 Jul 24, 2026
2.0.3 Stable 8–11 Jul 24, 2026
2.0.2 Stable 8–11 Jul 24, 2026
2.0.1 Stable 8–11 Feb 12, 2025
2.0.0 Stable 8–11 Jan 22, 2025
2.0.0-beta5 Pre-release 8–10 Dec 10, 2024
2.0.0-beta4 Pre-release 8–10 Oct 8, 2024
2.0.0-beta3 Pre-release 8–10 PHP >=5.5.0 Oct 30, 2023
2.0.0-beta2 Pre-release 8–10 PHP >=5.5.0 Oct 30, 2023
2.0.0-beta1 Pre-release 8–10 PHP >=5.5.0 Aug 2, 2023