Project

General

Profile

Exporting Network for Good for CiviCRM » History » Version 6

Jon Goldberg, 11/09/2020 07:39 PM

1 6 Jon Goldberg
{{last_updated_at}} by {{last_updated_by}}
2
3 1 Jon Goldberg
# Exporting Network for Good for CiviCRM
4
5 3 Jon Goldberg
## General tips
6
* All previous exports are available for (re-)download under the **Settings » Export** menu.
7
* Network for Good breaks up exports into groups of 7500.  You'll need to download all of them and concatenate.
8
9 1 Jon Goldberg
## Contacts
10
* Go to the **Contacts** section from the left navigation menu.
11
* Click the "Select All" checkbox.  Unlike CiviCRM, this selects all contacts, not just the current page.
12
* Press the **Export** button.
13
* Select all fields for export (unless you know which ones are "summary" fields, which can be ignored).
14 2 Jon Goldberg
15
## Donations
16
* As above, but on the **Giving** screen.  Do not export fields associated with the contact (other than Donor ID).  Do not export soft credits.
17
18
## Soft Credits
19 4 Jon Goldberg
* The same as *Donations* above; when you specify export, there is a switch to include soft credits, which appear on the line below the hard credit.  You can actually use this for donation import as well if you filter out soft credits.  Correlating soft credits to hard credits programmatically is a bit tricky, especially since a contribution can have multiple soft credits.  I have a Kettle script to handle this, but in short - iterate through the list of records, incrementing a counter field every time the financial type is NOT "Soft Credit".  This should give your soft credits and donations the same counter ID.  Then split the list into soft credits and non-soft credits, and do a lookup from the soft credit list to the hard credits.
20 5 Jon Goldberg
21
## Unsubscribes/bounced emails
22
This is not an exportable field, but you can go to **Contacts**, select **New Filter**, and select one of the following:
23
* *Has unsubscribed primary email*
24
* *Has bounced primary email*
25
You can then export as above.  I found that exporting the unsubscribed contacts' Network for Good only, then matching it against `external_identifier` and setting `do_not_email` to `1` worked well.  Likewise, you can export just emails for bounces, and match that against `civicrm_email.email` and set `on_hold` to `1`.