NfP365 CRM API
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:
- Create a class and place it in the
/src/Resources/OpenAPI/folder. You can find existing examples there for reference. - Add a new method to the
/src/Http/OpenApiClient.phpfile.
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
Release Timeline
Releases
| Version | Type | Core | Notes | 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 | Drupal 11 support | 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 |