Efficient Processing
- Batch GL code creation for multiple funds
- Cached GL code validation for transactions
- Minimal API calls for existing codes
- Optimized query performance
This document details how WeGive funds are mapped to DonorPerfect GL codes, enabling proper fund designation and financial reporting across both systems.
Primary Table: dpcode (Code Tables)
WeGive Model: Fund
Sync Direction: WeGive → DonorPerfect (Push Only)
Mapping Strategy:
DonorPerfect Code Types:
| WeGive Field | DonorPerfect Field | Type | Notes |
|---|---|---|---|
id | @code | String | WeGive fund ID used as GL code |
name | @description | String | Fund name/description |
| N/A | @field_name | String | Always set to ‘GL_CODE’ |
| N/A | @user_id | String | Always set to ‘WeGive’ |
Alternative Mapping:
dp_gl_code field on WeGive fund| WeGive Field | DonorPerfect Field | Type | Max Length | Notes |
|---|---|---|---|---|
name | @description | String | 50 | Fund display name |
description | Not mapped | String | - | Extended description not synced |
category | Not mapped | String | - | Fund categories not synced |
Truncation Rules:
Update Workflow:
Active/Inactive Status:
Creation Sequence:
Modification Handling:
Usage Pattern:
Pre-Transaction Checks:
Required Parameters:
@field_name = 'GL_CODE'@code (fund ID or custom GL code)@description (fund name)@user_id = 'WeGive'SQL Query Example:
SELECT field_name, code, descriptionFROM dpcodeWHERE field_name = 'GL_CODE' AND user_id = 'WeGive'ORDER BY code| Error Type | Cause | Resolution |
|---|---|---|
| Duplicate Code | GL code already exists | Use existing code or create variant |
| Invalid Characters | GL code contains invalid characters | Clean code format and retry |
| Code Too Long | GL code exceeds DonorPerfect limits | Truncate or use alternative code |
| Permission Error | Insufficient rights to create codes | Verify API permissions |
| API Timeout | DonorPerfect API unavailable | Retry with backoff delay |
Required Fields:
Optional Fields:
dp_gl_code)When to Use Custom Codes:
Configuration Process:
dp_gl_code field in WeGive fundDonorPerfect Limitations:
Best Practices:
Sync Events:
Processing Schedule:
Efficient Processing
Error Recovery
Quality Checks:
Format Validation:
Dashboard Metrics:
Reporting Consistency:
Proactive Management
Error Prevention
Possible Causes:
Solutions:
Possible Causes:
Solutions:
Possible Causes:
Solutions:
Unsupported Fields:
DonorPerfect Limitations:
Potential Improvements:
Possible Enhancements:
For additional help with fund data mapping, contact our support team at support@wegive.com.