Skip to content

Commit 2b81965

Browse files
Merge pull request #6436 from segmentio/DOC-894
Unified Profiles - Einsteam fixes
2 parents 519e1f8 + 576add4 commit 2b81965

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

src/unified-profiles/create-sql-traits.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ The other phone fields for Salesforce Contacts are HomePhone, MobilePhone, & Oth
5656
SELECT
5757
c.*,
5858
CASE
59-
WHEN c.PHONE REGEXP '^(\\([0-9]{3}\\) [0-9]{3}-[0-9]{4})$' AND c.BILLING_COUNTRY = 'US'
59+
WHEN c.PHONE REGEXP '^(\\([0-9]{3}\\) [0-9]{3}-[0-9]{4})$' AND c.MAILING_COUNTRY = 'US'
6060
THEN CONCAT('+1', REGEXP_REPLACE(c.PHONE, '[^0-9]',''))
61-
WHEN c.BILLING_COUNTRY != 'US'
61+
WHEN c.MAILING_COUNTRY != 'US'
6262
THEN REGEXP_REPLACE(c.PHONE, '[^0-9]','')
6363
ELSE c.PHONE
6464
END as phone,
6565
FROM
6666
<database_name.contact_table> c
6767
WHERE
6868
c.PHONE IS NOT NULL
69-
AND c.BILLING_COUNTRY IS NOT NULL;
69+
AND c.MAILING_COUNTRY IS NOT NULL;
7070
```
7171

7272
After running this query, you can use ‘phone’ for lookups in Unified Profiles.
@@ -85,17 +85,17 @@ The other phone fields for Salesforce Leads are HomePhone, MobilePhone, & OtherP
8585
SELECT
8686
l.*,
8787
CASE
88-
WHEN l.PHONE REGEXP '^(\\([0-9]{3}\\) [0-9]{3}-[0-9]{4})$' AND l.BILLING_COUNTRY = 'US'
88+
WHEN l.PHONE REGEXP '^(\\([0-9]{3}\\) [0-9]{3}-[0-9]{4})$' AND l.COUNTRY = 'US'
8989
THEN CONCAT('+1', REGEXP_REPLACE(l.PHONE, '[^0-9]',''))
90-
WHEN l.BILLING_COUNTRY != 'US'
90+
WHEN l.COUNTRY != 'US'
9191
THEN REGEXP_REPLACE(l.PHONE, '[^0-9]','')
9292
ELSE l.PHONE
9393
END as phone,
9494
FROM
9595
<database_name.lead_table> l
9696
WHERE
9797
l.PHONE IS NOT NULL
98-
AND l.BILLING_COUNTRY IS NOT NULL;
98+
AND l.COUNTRY IS NOT NULL;
9999
```
100100

101101
After running this query, you can use ‘phone’ for lookups in Unified Profiles.

src/unified-profiles/segment-for-flex.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ You can add additional data sources after completing the setup process. <br>
3838
5. Give your destination a name and enter the account credentials for a user that has read and write permissions. Click **Save**.
3939
6. After you've given your destination a name and entered your credentials, click **Next**.
4040
7. On the Getting started with Segment page, click **Define Model**.
41-
8. [Create a SQL query that defines your model](/docs/unified-profiles/create-sql-traits){:target="_blank"}. After you've created a model, Segment uses your model to map data to your Reverse ETL destinations.
41+
8. Create a SQL query that defines your model. After you've created a model, Segment uses your model to map data to your Reverse ETL destinations.
42+
43+
> info "Sample queries for importing records into Unified Profiles"
44+
> Not sure where to start with the SQL queries that define your model? See the [RETL Queries for Importing Salesforce Objects into Unified Profiles in Flex](/docs/unified-profiles/create-sql-traits){:target="_blank"} documentation.
45+
4246
<ol style="counter-reset: none;">
4347
<li value="9" markdown=1>
4448
Click **Preview** to return 10 records from your warehouse. When you've verified that your records return as expected, click **Next**.
@@ -51,6 +55,8 @@ You can add additional data sources after completing the setup process. <br>
5155
</li>
5256
</ol>
5357

58+
> warning "Records from your data warehouse and Salesforce might not be immediately available"
59+
> Segment's initial sync with your data warehouse can take up to 24 hours to complete. Segment syncs with Salesforce immediately after you connect it to your Segment for Flex workspace. This initial sync can take up to 72 hours. After Segment completes the initial sync with Salesforce, Segment initiates a sync with Salesforce every three hours.
5460
5561
### Data warehouse only
5662

@@ -59,7 +65,8 @@ You can add additional data sources after completing the setup process. <br>
5965
3. Give your destination a name and enter the account credentials for a user that has read and write permissions. Click **Save**.
6066
4. After you've given your destination a name and entered your credentials, click **Next**.
6167
5. On the *Getting started with Segment* page, click **Define Model**.
62-
6. [Create a SQL query that defines your model](/docs/unified-profiles/create-sql-traits){:target="_blank"} After you've created a model, Segment uses your model to map data to your Reverse ETL destinations.
68+
6. Create a SQL query that defines your model. After you've created a model, Segment uses your model to map data to your Reverse ETL destinations.
69+
6370
<ol style="counter-reset: none;">
6471
<li value="7" markdown=1>
6572
Click **Preview** to return 10 records from your warehouse. When you've verified that your records return as expected, click **Next**.
@@ -72,6 +79,9 @@ You can add additional data sources after completing the setup process. <br>
7279
</li>
7380
</ol>
7481

82+
> warning "Records from your data warehouse might not be immediately available"
83+
> Segment's initial sync with your data warehouse can take up to 24 hours to complete.
84+
7585
### Website or mobile app
7686

7787
Connect to either a website or mobile app to complete this step.
@@ -96,7 +106,7 @@ Connect to either a website or mobile app to complete this step.
96106
5. After Segment marks the "Add connections" tile as complete, click **Add identifiers and traits** and begin [Step 3: Add identifiers and traits](#step-3-add-identifiers-and-traits).
97107

98108
## Step 3: Add identifiers and traits
99-
After you've selected which data sources you'd like to integrate customer data from, you can select _identifiers_, or unique pieces of data that allow you to link information about an individual customer across different programs and services, and _traits_, which are pieces of information you know about a particular customer.
109+
After you've selected which data sources you'd like to integrate customer data from, you can select _identifiers_, or unique pieces of data that allow you to link information about an individual customer across different programs and services, and _traits_, which are pieces of information you know about a particular customer.
100110

101111
1. On the Add identifiers and traits page, click **Add identifier**.
102112
2. Select one or more of Segment's 11 default identifiers and click **Add identifiers**.
@@ -183,7 +193,6 @@ These destinations are limited to the following types:
183193
- [Segment Profiles destination](/docs/connections/destinations/catalog/actions-segment-profiles/){:target="_blank"}
184194
- [Segment Connections destination](/docs/connections/destinations/catalog/actions-segment/){:target="_blank"}
185195

186-
187196
### Entitlements
188197

189198
Your Segment for Flex workspace has the following entitlements:
@@ -206,4 +215,4 @@ Your Segment for Flex workspace has the following entitlements:
206215
title="Connect an Existing Workspace to Flex"
207216
description="Flex customers with an existing Segment workspace that has a Unify space can connect their Unify space to Flex."
208217
%}
209-
</div>
218+
</div>

0 commit comments

Comments
 (0)