Project

General

Profile

Exporting Salsa for CiviCRM » History » Version 27

Jon Goldberg, 01/11/2015 05:31 PM

1 24 Jon Goldberg
{{lastupdated_at}} by {{lastupdated_by}}
2
3 1 Jon Goldberg
h1. Exporting Salsa for CiviCRM
4
5 2 Jon Goldberg
When logged in as a Manager, "Query/Export" will give you a full export of contact data.  There's a "Select My Entire List" button.  There's also an "include my deleted supporters" checkbox, which you may want to check (but probably not).  This will NOT get you groups/tags.
6 1 Jon Goldberg
7 14 Jon Goldberg
h2. Exporting Data not on the Contact Entity
8 2 Jon Goldberg
9 25 Jon Goldberg
You need to get to custom reports.  If you have the Reports tab, great; if not, you can get there by clicking "Supporter Management" tab, then "Built-in Reports", then "Clone and Edit" a report, then select "List Your Custom Reports".  Or go straight here: https://hq-org.salsalabs.com/dia/hq/reports/list.jsp?table=report
10 1 Jon Goldberg
11 8 Jon Goldberg
*Important*: When selecting foreign keys (e.g. "Supporter KEY") from the Columns tab, be sure to give a custom label.  This will cause the key to display correctly, instead of giving a link to the supporter's record.
12
13 11 Jon Goldberg
h3. Groups
14 12 Jon Goldberg
15 3 Jon Goldberg
* Create a new report.
16
* Select the type of report you would like to create: Standard report
17
* Use "Advanced Object Chooser".
18 9 Jon Goldberg
* Report "Supporter Groups", then "Groups".  Press "Save".
19 1 Jon Goldberg
* Select the "Columns" tab and select your columns.  I like just "Supporter Key" and "Group Name".
20 7 Jon Goldberg
* In Conditions, "Group Name" should be "Not Empty".
21 4 Jon Goldberg
* Save, Run the report.
22
* Click the "Export" link.
23 1 Jon Goldberg
24 11 Jon Goldberg
h3. Tags
25 12 Jon Goldberg
26 5 Jon Goldberg
* Create a new report.
27
* Select the type of report you would like to create: Standard report
28
* Use "Advanced Object Chooser".
29
* Report on "Tags", then "Tags Data", then "Database Table".  Press "Save".
30
* Select the "Columns" tab and select your columns.  I like just "Tag" and "Table Key".
31 1 Jon Goldberg
** "Table Key" is the Supporter Key.  It's similar to "entity_id" in CiviCRM.
32 7 Jon Goldberg
* In "Conditions", "Table Name" should equal "supporter".
33 10 Jon Goldberg
* Add another condition: "Tag.Tag" is "Not Empty".
34 1 Jon Goldberg
* Save, Run the report.
35
* Click the "Export" link.
36
37 11 Jon Goldberg
h3. Events
38 1 Jon Goldberg
39 15 Jon Goldberg
As above, but no conditions, and report on the "Event" table.  If you're only importing legacy events, this is a good list of easy fields to import:
40
Event KEY
41
Reference Name
42
Event Name
43
Description
44
Start
45
End
46
Deadline
47
Maximum Attendees
48
49 1 Jon Goldberg
h3. Participants
50 16 Jon Goldberg
51
As above.  Report on tables "Supporter Event", then "Event".  Note that there are a lot of tables that _look_ like "Supporter Event", like "Supporterevent" and "Supporter Events"!
52
53
Note that if you're matching on a unique field from "Events", you can just export "Supporter Event" and not the "Event" table.
54
Here are the fields I exported and what I matched them to:
55
Supporter KEY	external_identifier
56
Event KEY	event_key
57
Status	status
58
Type	role
59
Date Created	register_date
60
61 27 Jon Goldberg
h3. Donations
62
63
It's important to link the recurring donations to the donations when exporting if you need to identify the first recurring donation (e.g. to generate thank-you letters if it's a first donation and recurring).
64
65
Export on table "Donation" linked to table "Recurring Donation".  You'll want these fields:
66
67
Donation.donation KEY(donation)	
68
Donation.supporter KEY(donation)
69
Donation.Transaction Date(donation)
70
Donation.amount(donation)
71
Donation.Transaction Type(donation)
72
Donation.RESULT(donation)
73
Donation.First Name(donation)
74
Donation.Last Name(donation)
75
Donation.Email(donation)
76
Donation.Tracking Code(donation)
77
Donation.In Honor Name(donation)
78
Donation.In Honor Email(donation)
79
Donation.In Honor Address(donation)
80
Recurring donation.Transaction Date(recurring_donation)	
81
82 19 Jon Goldberg
h3. Actions
83 17 Jon Goldberg
84 19 Jon Goldberg
Salsa has a separate table for actions, making them structurally comparable to Civi Events.  A good match in Civi is the Survey entity, which is used for petitions.
85 1 Jon Goldberg
86 19 Jon Goldberg
Export as above. Report on table "Action".
87
Condition: "Reference Name" is not empty.
88
89
*Note*: "Description" is likely to contain HTML that breaks the export.  I find it helpful to export it as the last column.
90
91
h3. Supporter_Actions
92 11 Jon Goldberg
93 22 Jon Goldberg
Export "action" and "supporter_action" and "supporter_action_comment" in that order.
94 23 Jon Goldberg
Condition: supporter_key IS NOT NULL
95 20 Jon Goldberg
96
Here's the fields I grabbed with their mapping:
97 22 Jon Goldberg
supporter_action.supporter_key	
98 21 Jon Goldberg
action.Reference Name
99 22 Jon Goldberg
supporter_action.Date_Created
100
supporter_action_comment.Comment	details
101 20 Jon Goldberg
102 11 Jon Goldberg
h3. Chapters
103 12 Jon Goldberg
104 7 Jon Goldberg
* Create a new report.
105 1 Jon Goldberg
* Select the type of report you would like to create: Standard report
106 7 Jon Goldberg
* Use "Advanced Object Chooser".
107 8 Jon Goldberg
* Report "Supporter Chapter", then "Chapter".  Press "Save".
108
* Select the "Columns" tab and select your columns.  I like just "Supporter KEY" and "Chapter.Name".
109
* In Conditions, "Chapter.Name" should be "Not Empty".
110 5 Jon Goldberg
* Save, Run the report.
111 1 Jon Goldberg
* Click the "Export" link.
112
113 7 Jon Goldberg
h3. Receive_Email field
114 1 Jon Goldberg
115
Here's a TSV of how to interpret the "Receive_Email" field.
116 26 Jon Goldberg
|*code*|*meaning*|
117
|-24|INACTIVE: (5.1.1 User Unknown)|
118
|-26|INACTIVE: Address contains RFC spec. invalid characters / is improperly formatted|
119
|-3|INACTIVE: UNSUBSCRIBED (actively unsubscribed by user)|
120
|-30|INACTIVE (Reported as Spam): Other Blacklist (BLACKLIST)|
121
|-32|(Unknown Status)|
122
|-35|INACTIVE (Reported as Spam): Outblaze|
123
|-4|(Unknown Status)|
124
|-42|INACTIVE (Recipient Initiated Spam Report): MSN/Hotmail/WebTV|
125
|-44|INACTIVE (Recipient Initiated Spam Report): UNTI (Juno/NetZero/FreeServers)|
126
|-45|INACTIVE (Recipient Initiated Spam Report): Yahoo|
127
|-46|INACTIVE (Recipient Initiated Spam Report): Comcast.net|
128
|-47|INACTIVE (Recipient Initiated Spam Report): AOL|
129
|-48|INACTIVE (Recipient Initiated Spam Report): RoadRunner|
130
|-50|ISP Specific Bounces: AIM.com Unactivated account|
131
|-51|INACTIVE (Recipient Initiated Spam Report): Excite|
132
|-52|INACTIVE (Reported as Spam): Earthlink|
133
|-53|(Unknown Status)|
134
|-54|(Unknown Status)|
135
|-60|Bad Address/Expired address, etc (n.b.: These addresses are all @democracyinaction.org)|
136
|-9|INACTIVE: DEATH (supporter has died)|
137
|0|0 - Inactive or Unknown(not subscribed)|
138
|1|1 - Imported or unknown (subscribed)|
139
|10|ACTIVE: CONFIRMED (Double opt-in)|
140
|3|ACTIVE: CLIENT (Client has directly signed up)|
Go to top