Exporting Salsa for CiviCRM » History » Version 20
Jon Goldberg, 09/21/2014 03:10 PM
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 | 19 | Jon Goldberg | h3. Actions |
60 | 17 | Jon Goldberg | |
61 | 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. |
62 | 1 | Jon Goldberg | |
63 | 19 | Jon Goldberg | Export as above. Report on table "Action". |
64 | Condition: "Reference Name" is not empty. |
||
65 | |||
66 | *Note*: "Description" is likely to contain HTML that breaks the export. I find it helpful to export it as the last column. |
||
67 | |||
68 | h3. Supporter_Actions |
||
69 | 11 | Jon Goldberg | |
70 | 20 | Jon Goldberg | Export "supporter_action" and "supporter_action_comment". |
71 | |||
72 | Here's the fields I grabbed with their mapping: |
||
73 | supporter_key external_identifier |
||
74 | action_key lookup against max_number_of_contact |
||
75 | Date_Created activity_date_time |
||
76 | Comment details |
||
77 | |||
78 | |||
79 | 11 | Jon Goldberg | h3. Chapters |
80 | 12 | Jon Goldberg | |
81 | 7 | Jon Goldberg | * Create a new report. |
82 | 1 | Jon Goldberg | * Select the type of report you would like to create: Standard report |
83 | 7 | Jon Goldberg | * Use "Advanced Object Chooser". |
84 | 8 | Jon Goldberg | * Report "Supporter Chapter", then "Chapter". Press "Save". |
85 | * Select the "Columns" tab and select your columns. I like just "Supporter KEY" and "Chapter.Name". |
||
86 | * In Conditions, "Chapter.Name" should be "Not Empty". |
||
87 | 5 | Jon Goldberg | * Save, Run the report. |
88 | 1 | Jon Goldberg | * Click the "Export" link. |
89 | |||
90 | 7 | Jon Goldberg | h3. Receive_Email field |
91 | 1 | Jon Goldberg | |
92 | Here's a TSV of how to interpret the "Receive_Email" field. |
||
93 | code # of records meaning |
||
94 | -24 11066 INACTIVE: (5.1.1 User Unknown) |
||
95 | -26 1265 INACTIVE: Address contains RFC spec. invalid characters / is improperly formatted |
||
96 | -3 10596 INACTIVE: UNSUBSCRIBED (actively unsubscribed by user) |
||
97 | -30 8 INACTIVE (Reported as Spam): Other Blacklist (BLACKLIST) |
||
98 | -32 11 (Unknown Status) |
||
99 | -35 1 INACTIVE (Reported as Spam): Outblaze |
||
100 | -4 1 (Unknown Status) |
||
101 | -42 349 INACTIVE (Recipient Initiated Spam Report): MSN/Hotmail/WebTV |
||
102 | -44 10 INACTIVE (Recipient Initiated Spam Report): UNTI (Juno/NetZero/FreeServers) |
||
103 | -45 818 INACTIVE (Recipient Initiated Spam Report): Yahoo |
||
104 | -46 69 INACTIVE (Recipient Initiated Spam Report): Comcast.net |
||
105 | -47 545 INACTIVE (Recipient Initiated Spam Report): AOL |
||
106 | -48 1 INACTIVE (Recipient Initiated Spam Report): RoadRunner |
||
107 | -50 10 ISP Specific Bounces: AIM.com Unactivated account |
||
108 | -51 3 INACTIVE (Recipient Initiated Spam Report): Excite |
||
109 | -52 18 INACTIVE (Reported as Spam): Earthlink |
||
110 | -53 15 (Unknown Status) |
||
111 | -54 1 (Unknown Status) |
||
112 | -60 4 Bad Address/Expired address, etc (n.b.: These addresses are all @democracyinaction.org) |
||
113 | -9 5 INACTIVE: DEATH (supporter has died) |
||
114 | 0 1101 0 - Inactive or Unknown(not subscribed) |
||
115 | 1 64352 1 - Imported or unknown (subscribed) |
||
116 | 10 3 ACTIVE: CONFIRMED (Double opt-in) |
||
117 | 4 | Jon Goldberg | 3 8924 ACTIVE: CLIENT (Client has directly signed up) |