USE CASES:
Use Case 1. Import Subscriber Data into Data Extension:
A client sends a daily file containing new subscribers. The file is uploaded to FTP and imported into a Subscriber Data Extension for email campaigns.
First Step: Upload a subscriber file in WinSCP and connect SFMC Enhanced FTP using WinSCP.
For practice purpose: Used an existing DE>exported the records and cleared the records.
Once the import is completed we will create Import activity using Automation Studio. Here what we are going to do is, whenever the owner of the shop is dragging and dropping their file with records in the WinSCP using the import function, the records should appear in our DE in the SFMC tool.
This is the DE with no records: After completing the Import Activity, data will auto populate here.
Go to Automation Studio > Create New Automation> Add File drop> Add Data Copy/ ImportConfigure File Drop as per the image below: (Use File name pattern to "Begins with" and add the name of the File that you are importing in WinSCP> Choose the Import Folder> Done)
Choose the destination in the activity to the DE where you want the records to reflect:
Select the mapping and choose overwrite action:
Review the import automation created:
After reviewing it, in the next page tap on Save> Then tap Activate to start the automation process:
Automation will run automatically and you will see new activity created once the automation is completed. If there is any error or issue, you will see in the Activity section and receive an email for the same.
Check the target DE for records> Records successfully added using Automation:
Use Case 2: Daily Customer Profile Uploads
Every night, the CRM exports customer details (Name, Email, Phone, City) and places them on SFMC FTP. Automation imports the data to keep customer profiles updated.
Create a DE with fields name (Name, Email, Phone, City) and prepare a source file in your local system with the same field and records. (For practice purpose I exported data from my existing DE and cleared the records in the DE):
Now, we upload the csv file in WinSCP: Open WinSCP> Find your file and drag and drop it to import in the right side(WinSCP location)
Next, create Import Activity in the Automation Studio:
Use File Drop> Configure File Drop> Select Use File name pattern> Select "Begins with" and add the name of the file that you imported to WinSCP> Select Import> Choose Done
We are using File Drop and not the Schedule option here because the exact time of data getting imported in not specified. Like 9:00 PM, it only says every night
Under Data copy/Import, Create new copy or import definition> Enter the Automation Name> Under source, select ExactTarget Enhanced FTP> Enter the name of the file that you imported in WinSCP with .csv
Select the Target DE:
In the Mapping, select Add & Update because profiles are updated daily every night:
Save and Active the automation and wait for the Activity to run:
Records added in DE:Now I have changed phone numbers of 2 contacts, the automation will be run again for the updated file to appear:
Once its completed, the DE should reflect the updated number because while mapping the automation we selected "Add & Update"
After completing this, I made changes to my csv file from my local computer, and dragged and dropped it in the WinSCP. Once that is completed, I went back to automation> I see another activity was run and DE is updated with new data.
This means that as long as the status of the automation is active, whenever file is imported from the local system to WinSCP, the automation will automatically run and update the records in DE. If we want to make any changes with mapping, we need to stop the automation, make the changes and Active the status back again.
Add Import Activity (I have compressed my file into Zip file so I can import it in csv for this practice):
In my automation, I have used Schedule> I added "File Transfer(Since I have Zip File)> Data Copy & Import to add the DE> Configure
For the schedule, I am selecting Automation, because I have automated the DE from Automation Studio where the data arrives there.
Comments
Post a Comment