Skip to content

Commit 253dbe8

Browse files
committed
final editing pass [netlify-build]
1 parent fa2fffe commit 253dbe8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: RETL Scripts For Importing Salesforce Objects Into Unified Profiles
2+
title: RETL Scripts For Importing Salesforce Objects Into Unified Profiles in Flex
33
hidden: true
44
---
5-
Unified Profiles users can convert Salesforce objects with US phone number patterns (typically (555) 231-7654) into Segment Unify profiles with E.164 phone number formats (+15552317654) to support Unified Profiles lookup.
5+
Unified Profiles in Flex users can convert Salesforce objects with US phone number patterns (typically (555) 231-7654) into Segment Unify profiles with E.164 phone number formats (+15552317654) to support Unified Profiles lookup.
66

77
Segment created three sample queries for Unified Profiles users to import common Salesforce objects:
88
- [Accounts](#accounts)
@@ -16,9 +16,11 @@ To selectively import columns, replace the `a*`, `c*`, or `l*` with a list of fi
1616
1717
## Accounts
1818

19-
To import Salesforce Accounts into Unified Profiles as Segment Unify profiles, create a RETL mapping with the following format.
19+
To import Salesforce Accounts into Unified Profiles as Segment Unify profiles, create a RETL mapping with the following format.
2020

21-
Replace `<database_name.account_table>` with your database name and account table, `PHONE` with the name of the column in your warehouse that contains phone numbers, and `BILLING_COUNTRY` with the name of the column in your warehouse that contains the account's country.
21+
Replace `<database_name.account_table>` with your database name and account table, `PHONE` with the name of the column in your warehouse that contains phone numbers, and `BILLING_COUNTRY` with the name of the column in your warehouse that contains the account's country. In this example query, the `PHONE` column is the primary contact phone number and what you import as the Profile’s 'phone' trait.
22+
23+
The other phone fields for Salesforce Accounts are PersonHomePhone, PersonMobilePhone, & PersonOtherPhone, and could be substituted for `PHONE` in this query. **You can only import one phone number field as the identifier used for lookups in Flex.**
2224

2325
``` sql
2426
SELECT
@@ -37,16 +39,16 @@ WHERE
3739
AND a.BILLING_COUNTRY IS NOT NULL;
3840
```
3941

40-
Salesforce objects have several phone number-related fields. In this example query, the “PHONE” column is the primary contact phone number and what you import as the Profile’s 'phone' trait. The other phone fields for Salesforce Accounts are PersonHomePhone, PersonMobilePhone, & PersonOtherPhone, and could be substituted for "PHONE" in this query.
41-
42-
After running this query, ‘phone’ can be used as an identifier used for lookups in Unified Profiles.
42+
After running this query, you can use ‘phone’ for lookups in Unified Profiles.
4343

4444

4545
## Contacts
4646

4747
To import Salesforce Contacts into Unified Profiles as Segment Unify profiles, create a RETL mapping with the following format.
4848

49-
Replace `<database_name.contact_table>` with your database name and account table, `PHONE` with the name of the column in your warehouse that contains phone numbers, and `BILLING_COUNTRY` with the name of the column in your warehouse that contains the contact's country.
49+
Replace `<database_name.contact_table>` with your database name and account table, `PHONE` with the name of the column in your warehouse that contains phone numbers, and `BILLING_COUNTRY` with the name of the column in your warehouse that contains the contact's country.
50+
51+
Salesforce objects have several phone number-related fields. In this example query, the `PHONE` column is the primary contact phone number and what you import as the Profile’s 'phone' trait. The other phone fields for Salesforce Contacts are HomePhone, MobilePhone, & OtherPhone, and could be substituted for `PHONE` in this query. **You can only import one phone number field as the identifier used for lookups in Flex.**
5052

5153
``` sql
5254
SELECT
@@ -65,16 +67,16 @@ WHERE
6567
AND c.BILLING_COUNTRY IS NOT NULL;
6668
```
6769

68-
Salesforce objects have several phone number-related fields. In this example query, the “PHONE” column is the primary contact phone number and what you import as the Profile’s 'phone' trait. The other phone fields for Salesforce Contacts are HomePhone, MobilePhone, & OtherPhone, and could be substituted for "PHONE" in this query.
69-
70-
After running this query, ‘phone’ can be used as an identifier used for lookups in Unified Profiles.
70+
After running this query, you can use ‘phone’ for lookups in Unified Profiles.
7171

7272
## Leads
7373

7474
To import Salesforce Leads into Unified Profiles as Segment Unify profiles, create a RETL mapping with the following format.
7575

7676
Replace `<database_name.lead_table>` with your database name and lead table, `PHONE` with the name of the column in your warehouse that contains phone numbers, and `BILLING_COUNTRY` with the name of the column in your warehouse that contains the lead's country.
7777

78+
Salesforce objects have several phone number-related fields. In this example query, the `PHONE` column is the primary contact phone number and what you import as the Profile’s 'phone' trait. The other phone fields for Salesforce Leads are HomePhone, MobilePhone, & OtherPhone, and could be substituted for `PHONE` in this query. **You can only import one phone number field as the identifier used for lookups in Flex.**
79+
7880
``` sql
7981
SELECT
8082
l.*,
@@ -92,9 +94,7 @@ WHERE
9294
AND l.BILLING_COUNTRY IS NOT NULL;
9395
```
9496

95-
Salesforce objects have several phone number-related fields. In this example query, the “PHONE” column is the primary contact phone number and what you import as the Profile’s 'phone' trait. The other phone fields for Salesforce Leads are HomePhone, MobilePhone, & OtherPhone, and could be substituted for "PHONE" in this query.
96-
97-
After running this query, ‘phone’ can be used as an identifier used for lookups in Unified Profiles.
97+
After running this query, you can use ‘phone’ for lookups in Unified Profiles.
9898

9999
## Troubleshooting
100100
If these queries don't return phone numbers in E.164 format, examine your existing data and change the REGEX patterns as appropriate.

0 commit comments

Comments
 (0)