You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/sources/catalog/cloud-apps/salesforce/index.md
+18-8Lines changed: 18 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ id: 2baks93n
8
8
9
9
Take your company's analysis to the next level by **adding Salesforce as a Source to Segment.** Segment automatically collects objects like `Accounts`, `Campaigns`, and `Tasks` and loads them into your data warehouse.
10
10
11
-
## Getting Started
11
+
## Getting started
12
12
> info ""
13
13
> You can add multiple instances of this source if you have more than one Salesforce account.
14
14
15
15
1. From the `/sources` page in your Workspace, click `Add Source`.
16
16
17
17
2. Choose Salesforce.
18
18
19
-
3. Give the source a name, add labels, if applicable, and select the Salesforce environment you'd like to pull data from. To use data from a Salesforce sandbox environment, select **Sandbox** from the Salesforce Environment dropdown and [contact Segment Support](https://segment.com/help/contact/). The support team will configure your source to use sandbox data.
19
+
3. Give the source a name, add labels, if applicable, and select the Salesforce environment you'd like to pull data from. To use data from a Salesforce sandbox environment, select **Sandbox** from the Salesforce Environment dropdown and [contact Segment Support](https://segment.com/help/contact/){:target="_blank"}. The support team will configure your source to use sandbox data.
20
20
21
21
4. Connect Segment to your Salesforce environment and authorize Segment to connect to it. In order for Segment to collect and sync your Salesforce data, you must enable API access for the user that you are connecting to Segment with. For more information on how to confirm or change API access for a Salesforce user, follow Salesforce's [recommended documentation](https://help.salesforce.com/articleView?id=admin_userperms.htm){:target="_blank"}.
22
22
@@ -95,24 +95,34 @@ Collections are the groupings of resources Segment pulls from your source. In yo
95
95
|`user_login`| object | Represents the settings that affect a user's ability to log into an organization. This object is available in API version 29.0 and later. Corresponds to [UserLogin](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_userlogin.htm) resource in Salesforce |
96
96
|`role`| object | A role in your organization. Corresponds to [UserRole](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_userrole.htm) resource in Salesforce |
97
97
98
-
### Custom Objects
98
+
### Custom objects
99
99
100
100
Select and add custom objects from the Selective Sync page in the Salesforce source settings.
101
101
102
-
### Deleting Records
102
+
### Deleting records
103
103
104
104
Segment supports the use of soft deletes in Salesforce. If you perform a soft delete on a record in Salesforce, your next one to two warehouses syncs will change the value of `is_deleted` for the associated record to `True`.
105
105
106
106
Segment does not support hard deletes in Salesforce. Use of hard deletes will result in the data remaining in the warehouse with `is_deleted` set to `False`.
107
107
108
-
## Collection Properties
108
+
## Collection properties
109
109
110
-
Segment performs a one-to-one mapping of all publicly available fields (standard and custom) from Salesforce. To see the full list of the standard fields refer to the Salesforce field documentation linked in each collection above. If you've added and selected custom fields to an existing collection, [contact Segment Support](https://segment.com/help/contact/) to configure them to sync. You do not need to include the field names.
110
+
Segment performs a one-to-one mapping of all publicly available fields (standard and custom) from Salesforce. To see the full list of the standard fields refer to the Salesforce field documentation linked in each collection above.
111
111
112
-
## Adding Destinations
112
+
## Adding destinations
113
113
114
114
Warehouses are the only supported destination for object-cloud sources.
115
115
116
+
## Historical data
117
+
When a new Object/Collection is enabled, Segment automatically runs a full historical re-sync on that Object.
118
+
119
+
However, for custom properties/columns, Segment only populates the custom property with data that comes in after the custom field was enabled. In order to populate the new custom field(s) for records that have previously been synced, you need to initiate a manual re-sync.
120
+
121
+
For Salesforce, Segment uses the `SystemModstamp`(system_modstamp) field to checkpoint collections that sync incrementally. When enabled, Segment syncs collections incrementally. When disabled, Segment syncs collections fully. If you'd like to force a collection to sync fully on the next run to bring in historical data, you can disable the `SystemModstamp` field on the collection, allow the next sync to complete and then re-enable `SystemModstamp` so the collection syncs incrementally in the coming syncs.
122
+
123
+
If you've added and selected custom fields to an existing collection and would not like to use `SystemModstamp` to bring in historical data, [contact Segment Support](https://segment.com/help/contact/){:target="_blank"} to configure them to sync. You do not need to include the field names.
124
+
125
+
116
126
## Troubleshooting
117
127
118
-
If you are syncing data from a Salesforce sandbox environment and see an "Invalid credentials" error, [contact Segment Support](https://segment.com/help/contact/), who will configure your Segment source to use sandbox data.
128
+
If you are syncing data from a Salesforce sandbox environment and see an "Invalid credentials" error, [contact Segment Support](https://segment.com/help/contact/){:target="_blank"} to configure your Segment source to use sandbox data.
0 commit comments