In today’s digital age, efficiently managing customer data is crucial for businesses. With the increasing complexity of customer information, having a streamlined process for organizing and accessing data is essential.
This article will explore how to transform contact information from AWS S3 to enable the storage of multiple identifiers per customer in a custom Identifier List Data Lake Object (DLO). By implementing these strategies, you can ensure your customer data is well-organized and easily accessible within your data cloud, enhancing your overall data management capabilities.
Starting the Data Transformation Process
First, click on Data Transforms and then select New. Choose Batch Data Transforms and click Next. Select Data Lake Objects and click Next again to open a new tab.
Adding Input Data
Add input data from AWS S3 customers, but only include three fields:
- Customer Reward Number (Number)
- Customer ID (Text)
- Passport Number (Text)
Click Next to proceed.
Filtering Records with Passport Numbers
- Click the Plus icon and use filters to extract records with passport numbers.
- Name the filter transformation Get Passport Number, and click Apply.
- Use the Add Custom Expression with the function `char length` to get the length of the passport number field.
- Set the condition to extract records where the passport number length is greater than zero.
- Click Apply.
Adding and Transforming Columns
- Click the Plus icon and select Transform.
- Name this step Add Key, Identifier Type and Name, and Drop Column.
- First, drop the Customer Reward Number column. Select this column and click Drop Column.
- Name this transformation, Drop the Customer Reward Number, and click Apply.
Adding Key Identifier
- Add a key using a custom formula with the concatenation function.
- Name this transformation Add Key.
- Use the `Concat` function with Customer ID as the first field and Passport Number as the second field.
- Set the output as text and name the column Identifier Key.
- Set the API name as `Identifier_Key__c` and click Apply.
Adding Identifier Name
- Add a column for the identifier name using a custom formula.
- Name this transformation Add the Identifier Name and hard-code the value to the Passport Number.
- Set the output as text and label the column Identifier Name.
- Set the API name as `Identifier_Name__c` and click Apply.
Adding Identifier Type
- Add a column for the identifier type using a custom formula.
- Name this transformation, Add Identifier Type, and hard-code the value to Identifier.
- Set the output as text and label the column Identifier Type.
- Set the API name as `Identifier_Type__c` and click Apply.
Also Read: How To Import Customer & Order Data to Salesforce Data Cloud From AWS S3
Renaming the Passport Number Column
- Rename the Passport Number column to Identifier Number.
- Select Passport Number, use Edit Attributes, and name this transformation Rename to Identifier Number.
- Set the new label to Identifier Number and the API name to `Identifier_Number__c`.
- Click Apply.
With these transformations, the output will include:
- Customer ID
- Identifier Number
- Identifier Key
- Identifier Name
- Identifier Type
Loading Data into the Identifier List DLO
- Click the Plus icon and select Output.
- Choose the Identifier List Data Lake Object.
- Map the fields as follows:
- Customer ID to Party
- Identifier Number to Identification Number
- Identifier Key to Identifier Key
- Identifier Name to Identification Name
- Identifier Type to Party Identification Type
- Click Apply and save the transformation as Extract Identifiers from AWS S3 Customers.
Handling Records with Customer Reward Numbers
Next, repeat the steps for records with customer reward numbers with a few changes:
- Convert Customer Reward Number from number to text.
- Select Customer Reward Number, use Number to Text, and name this transformation Convert to Text.
- Display the results in the existing column and click Apply.
- Use a filter to get records with a Customer Reward Number greater than zero.
- Use Char Length with the field Customer Reward Number and set it to greater than zero.
- Click Apply.
Add and transform columns similarly to the previous steps:
- Drop the Passport Number column.
- Concatenate Customer ID and Customer Reward Number to create an Identifier Key.
- Hard-code Identifier Name to Customer Reward Number.
- Hard-code Identifier Type to Identifier.
- Rename Customer Reward Number to Identifier Number.
Combining Transformations
- Append the output of this transformation to the output of the previous one.
- Select Append and ensure the keys are correctly matched based on column names.
Finally, save the transformation and review the output, which will now include customers with both their passport and reward numbers as identifiers.
Explore our Salesforce Data Cloud series on YouTube for expert guidance and tips on leveraging Salesforce Data Cloud effectively.
Conclusion
Efficiently managing and transforming customer data from AWS S3 into custom Identifier List Data Lake Objects is essential for businesses aiming to optimize their data management processes. By following the steps outlined in this guide, you can ensure that your customer data is not only well-organized but also easily retrievable and usable within your data cloud. This approach will enhance your ability to handle multiple identifiers per customer, ultimately improving your overall data management strategy.
If you want to improve your Salesforce skills, explore our Salesforce Data Cloud Consultant course. Start a free trial to access over 24 Salesforce certification courses, more than 50 mock exams, and 50+ hands-on Salesforce labs.
Advance your career and make learning easier with saasguru today!