Earn a Salesforce AI Certification by IIT + 12-Week Internship Secure Your Spot Today!

Earn a Salesforce AI Certification by IIT + 12-Week Internship Secure Your Spot Today!
Extracting and Storing Multiple Emails per Customer in Custom DLO

Extracting and Storing Multiple Emails per Customer in Custom DLO

Effective data management is essential for maintaining organized and accessible customer information, especially when dealing with multiple email addresses per customer. Transforming customer contact information stored in AWS S3 can be a complex task, but with the right approach, it can be streamlined and efficient. 

In this article, we’ll explore how to extract, filter, and store email addresses into a custom email address list DLO (Data Link Object). Whether you’re managing a vast database or looking to enhance your data management processes, these insights will help you achieve a more efficient and organized approach to handling customer data.

Step-by-Step Guide for Transforming Contact Information from AWS S3 for Custom Email Lists

1. Setting Up a New Data Transform

Start by clicking New in the Data Transform section. Select Batch Data Transform and click Next. Proceed by clicking on View Data to utilize Data Link Objects (DLO). Click Next to open a new tab.


2. Adding Input Data from AWS S3

Click on Add Input Data. Choose the AWS S3 customers data link and select only the relevant fields: alternate email address, primary email address, and customer ID. Click Next.

Also Read: Effective Data Object Mapping From Salesforce CRM to Data Cloud

3. Filtering Primary Email Addresses

Apply a filter to extract only the primary email addresses. Use the Add Custom Expression function with the formula Char Length to ensure the length of the primary email address is greater than zero. Click Apply to filter out records without a primary email address.

1 ZtyU3te6unvZ4f6kgckcOLaDGjNipz5oN1woFoILC9ozgNRJWpeWJWUsDlapTOiTakt9BPP6nrxHexQOd8yr

4. Transforming Data

Next, we need to add an identifier key, drop columns, and rename columns:

  • Drop the Alternate Email Address Column: Use the drop column function and name it “drop alternate email address.” Click Apply.
  • Create an Identifier Key: Use the custom formula and the Concat function to concatenate the customer ID and primary email address. The output should be text, and the column name will be **email address key** with the API name email_address_key__c. Click Apply.
W64 06FwGL4lGrAGdeHFVKUhdP6r0QuuZPkDCibMZTyJf5p5aTvCTtVG QsCURs8ktLF5KfTQy uQbSEoJFjijlpAQTu12IQOVNhBYe27PSKXPTWFznwRmC7XQlC5wkCsaJNr1maW2J9JSg52rRPN5g
  • Rename the Primary Email Address Column: Edit the attributes to rename the column to email address. Click Apply.
EPFZI5sDXv7zb7 tcKK9wT6V2WWegF2HNn80zRuEcu6Gy0napl3mjGUdxhs3YEbYgsDqw9nRzQMfGPpLa4dGXjFs6yxqm5gM yUOuA73CsjOBUOR2nyrv1F D4WwvvZcZirU7RlvmAulEPAJsE1 7u8

Also Read: How To Import Customer & Order Data to Salesforce Data Cloud From AWS S3

5. Loading Transformed Data into DLO

Use the Plus Output Node to map the output to the email address list DLO. Map email to email, customer ID to party, and email address key to email address key. Save this batch transform as an extract email address from the AWS S3 customer.

AerIw7BJHxF0rIQf ICI5wdukdJIdJJQl SK0bU30kVnHq6Mydg6DIQE6GNJohVaIC1MvmIDCNlkqfJC8bN Jik4rXz2jyirBpFLjkhDIJLyzNP9Xjo eKUYgrVRSDWNTN4SQu0hQqZGJU

6. Repeating for Alternate Email Addresses

Repeat the steps above to handle alternate email addresses:

  • Create a Filter for Alternate Emails: Apply a custom expression with Char Length to ensure the length of the alternate email address is greater than zero. Click Apply.
h2HAuwo53mDL3MI3avJmrShnCKb33ngTGb3vyovrFjFy qWkS3H1QFwB9bgs7dJ8OUt1sdTX6wTcN2MRU3NdTHLnHNQ9HtzxeFqE zZ5 PERj3fQ4I1bFD711PZst7y6 CnQwo38XEDdoPRW1HA3 I
  • Drop the Primary Email Address Column: Use the drop column function and name it “drop primary email address.” Click Apply.
  • Create an Identifier Key: Use the custom formula with the Concat function to concatenate the customer ID and alternate email address. Name the column email address key with the API name email_address_key__c. Click Apply.
  • Rename the Alternate Email Address Column: Edit the attributes to rename the column to email address. Click Apply.
xMDGfzw oPmK9FnMx 1MM9zK0zZB0MPqtfqD2KSAHthdTKyB5JlKo7nntT8 X5KIkcb6 2fwNbvo98tUzoc8YFDOJ61I6VhRqQo1 Fl5d11DmunBkmzcVCnj2d6CvmGRwI6ldU7LYLgoqnclY64Czu4

7. Appending Data

Append the output of the alternate email transformation to the primary email transformation. Ensure the keys are correctly mapped: email to email address, customer ID to customer ID, and email address key to email address key. Click Apply.

NKULIRL 5Vrk2LBfvtQZ 6LlROywbvkd05SFYv1Q2gsOjkkOjlYxp

8. Reviewing and Executing Transformations

Review the final output to ensure it contains all email addresses (both primary and alternate) for each customer. Save the transformations. Execute both data transform jobs by selecting each one and clicking Run Now. Note that batch transforms may take some time to complete.

q3yzUD88YzlAUWKbKa78QaSps6kJd7eaG9GMbSU7pTBdGeXgaadSKSOiYUWiQfx aSaBGB5JALENuksh doMB93b17JtBfxlzK5TYiufdzrbPqo DqTl06Eascw7vdoF2pttBgBAY0lZT cqHUGcWg

By following these steps, you can efficiently transform and store multiple email addresses per customer from AWS S3 into a custom email address list. This process ensures your data is organized and accessible for future use.

Explore our Salesforce Data Cloud series on YouTube for expert guidance and tips on leveraging Salesforce Data Cloud effectively.

Conclusion

Effective data transformation is essential for maintaining organized and accessible customer information. By following this comprehensive guide, you can efficiently extract, filter, and store primary and alternate email addresses from AWS S3 into a custom email list. This approach not only streamlines your data management processes but also enhances your ability to handle large volumes of customer information with ease. 

free salesforce mock exams

Enhance your Salesforce skills with our Salesforce Data Cloud Consultant course. Start a free trial to access over 24 Salesforce certification courses, 50+ mock exams, and hands-on labs. 

Advance your career and simplify learning with saasguru today!

Table of Contents

Subscribe & Get Closer to Your Salesforce Dream Career!

Get tips from accomplished Salesforce professionals delivered directly to your inbox.

Looking for Career Upgrade?

Book a free counselling session with our Course Advisor.

By providing your contact details, you agree to our Terms of use & Privacy Policy

Unlock Your AI -Powered Assistant

Gain Exclusive Access to Your Salesforce Copilot

Related Articles

Mass Assign User Permission Set in Salesforce

Learn how to efficiently mass assign user permission sets in Salesforce using tools like Data Loader. Save time and ensure accuracy. Read now!

How to Clone a FlexCard in Salesforce

Learn how to clone a FlexCard in Salesforce with this step-by-step guide. Simplify customization and boost efficiency effortlessly!

Salesforce Introduces Agentforce 2.0: Redefining How Work Gets Done

Salesforce introduces Agentforce 2.0, the AI platform transforming digital labor with autonomous agents and seamless workflows. Read now!