Project

General

Profile

Exporting Salsa for CiviCRM » History » Version 18

Jon Goldberg, 09/21/2014 01:46 AM

1 1 Jon Goldberg
h1. Exporting Salsa for CiviCRM
2
3 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.
4 1 Jon Goldberg
5 14 Jon Goldberg
h2. Exporting Data not on the Contact Entity
6 2 Jon Goldberg
7 7 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 Custom Groups".  Or go straight here: https://hq-org.salsalabs.com/dia/hq/reports/list.jsp?table=report
8 1 Jon Goldberg
9 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.
10
11 11 Jon Goldberg
h3. Groups
12 12 Jon Goldberg
13 3 Jon Goldberg
* Create a new report.
14
* Select the type of report you would like to create: Standard report
15
* Use "Advanced Object Chooser".
16 9 Jon Goldberg
* Report "Supporter Groups", then "Groups".  Press "Save".
17 1 Jon Goldberg
* Select the "Columns" tab and select your columns.  I like just "Supporter Key" and "Group Name".
18 7 Jon Goldberg
* In Conditions, "Group Name" should be "Not Empty".
19 4 Jon Goldberg
* Save, Run the report.
20
* Click the "Export" link.
21 1 Jon Goldberg
22 11 Jon Goldberg
h3. Tags
23 12 Jon Goldberg
24 5 Jon Goldberg
* Create a new report.
25
* Select the type of report you would like to create: Standard report
26
* Use "Advanced Object Chooser".
27
* Report on "Tags", then "Tags Data", then "Database Table".  Press "Save".
28
* Select the "Columns" tab and select your columns.  I like just "Tag" and "Table Key".
29 1 Jon Goldberg
** "Table Key" is the Supporter Key.  It's similar to "entity_id" in CiviCRM.
30 7 Jon Goldberg
* In "Conditions", "Table Name" should equal "supporter".
31 10 Jon Goldberg
* Add another condition: "Tag.Tag" is "Not Empty".
32 1 Jon Goldberg
* Save, Run the report.
33
* Click the "Export" link.
34
35 11 Jon Goldberg
h3. Events
36 1 Jon Goldberg
37 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:
38
Event KEY
39
Reference Name
40
Event Name
41
Description
42
Start
43
End
44
Deadline
45
Maximum Attendees
46
47 1 Jon Goldberg
h3. Participants
48 16 Jon Goldberg
49
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"!
50
51
Note that if you're matching on a unique field from "Events", you can just export "Supporter Event" and not the "Event" table.
52
Here are the fields I exported and what I matched them to:
53
Supporter KEY	external_identifier
54
Event KEY	event_key
55
Status	status
56
Type	role
57
Date Created	register_date
58
59 1 Jon Goldberg
h3. Activities (aka "Actions")
60 17 Jon Goldberg
61 18 Jon Goldberg
Salsa has a separate table for actions, making them structurally more comparable to Civi events than Civi activities.  Supporters are joined via a many-to-many relationship to the action (supporter, supporter_action, supporter).  In a more full-featured import, surveys and petitions are also a good potential place to import actions.
62 17 Jon Goldberg
63 18 Jon Goldberg
Export as above. Report on tables "Supporter action", then "Action"
64 11 Jon Goldberg
65
h3. Chapters
66 12 Jon Goldberg
67 7 Jon Goldberg
* Create a new report.
68 1 Jon Goldberg
* Select the type of report you would like to create: Standard report
69 7 Jon Goldberg
* Use "Advanced Object Chooser".
70 8 Jon Goldberg
* Report "Supporter Chapter", then "Chapter".  Press "Save".
71
* Select the "Columns" tab and select your columns.  I like just "Supporter KEY" and "Chapter.Name".
72
* In Conditions, "Chapter.Name" should be "Not Empty".
73 5 Jon Goldberg
* Save, Run the report.
74 1 Jon Goldberg
* Click the "Export" link.
75
76 7 Jon Goldberg
h3. Receive_Email field
77 1 Jon Goldberg
78
Here's a TSV of how to interpret the "Receive_Email" field.
79
code	# of records	meaning
80
-24	11066	INACTIVE: (5.1.1 User Unknown) 
81
-26	1265	INACTIVE: Address contains RFC spec. invalid characters / is improperly formatted 
82
-3	10596	INACTIVE: UNSUBSCRIBED (actively unsubscribed by user) 
83
-30	8	INACTIVE (Reported as Spam): Other Blacklist (BLACKLIST) 
84
-32	11	(Unknown Status) 
85
-35	1	INACTIVE (Reported as Spam): Outblaze 
86
-4	1	(Unknown Status) 
87
-42	349	INACTIVE (Recipient Initiated Spam Report): MSN/Hotmail/WebTV 
88
-44	10	INACTIVE (Recipient Initiated Spam Report): UNTI (Juno/NetZero/FreeServers) 
89
-45	818	INACTIVE (Recipient Initiated Spam Report): Yahoo 
90
-46	69	INACTIVE (Recipient Initiated Spam Report): Comcast.net 
91
-47	545	INACTIVE (Recipient Initiated Spam Report): AOL
92
-48	1	INACTIVE (Recipient Initiated Spam Report): RoadRunner 
93
-50	10	ISP Specific Bounces: AIM.com Unactivated account 
94
-51	3	INACTIVE (Recipient Initiated Spam Report): Excite 
95
-52	18	INACTIVE (Reported as Spam): Earthlink 
96
-53	15	(Unknown Status) 
97
-54	1	(Unknown Status) 
98
-60	4	Bad Address/Expired address, etc (n.b.: These addresses are all @democracyinaction.org)
99
-9	5	INACTIVE: DEATH (supporter has died) 
100
0	1101	0 - Inactive or Unknown(not subscribed)
101
1	64352	1 - Imported or unknown (subscribed) 
102
10	3	ACTIVE: CONFIRMED (Double opt-in) 
103 4 Jon Goldberg
3	8924	ACTIVE: CLIENT (Client has directly signed up)
Go to top