You are here:
Define an Automation for Segment Exports
Configure and schedule an automation for segment exports. You can also test the automation before activating it.
Required Editions
| Permissions Needed | |
|---|---|
| To define an automation: | A role with Administrator permissions |
- From the main navigation in Marketing Cloud Engagement, select Journey Builder | Automation Studio.
-
Click New Automation.
- Drag Schedule from the Starting Sources section to the Start with a Starting Source dotted circle.
- Click Configure.
-
Enter a Start Date and Time.
Note Be sure not to set a start date and time that occurs before the date you expect to finish end-to-end testing of this process. - Confirm that the Time Zone is correct or change it.
- Select the Repeat as Daily every 1 day(s) option.
- Set the End as a number of occurrences, a specific date, or never.
- Click Done.
-
Drag Import File onto the workflow canvas.
- Click Choose to select an object for that activity.
- Click Create New Import Definition.
- Enter a Name for the activity that matches the segment so you can identify it in Automation Studio.
- Add a Description, if desired, such as details about the Personalization segment rules.
- You can leave External Key blank, or add one as necessary.
- To receive a notification after the import completes, select Send notification email to and enter the email address.
- Click Next.
- Select the File Location that you created previously.
-
Create the File Naming Pattern in the format
SegmentExport_[SEGMENT_ID]_%%Year%%-%%Month%%-%%Day%%.csv, replacing [SEGMENT_ID] with the segment ID for the segment you’re exporting. - As part of end-to-end testing, confirm that the Example File Name matches the file dropped in the SFTP inbound folder (such as SegmentExport_[SEGMENT_ID]_2022-04-15.csv).
-
Configure these settings:
Setting Description Date Format: English (United States) Delimiter: Comma Respect double quotes (") as a text delimiter: Selected Skip rows with bad data: Selected - Select any Advanced File Options you want.
- Click Next.
- Locate the data extension you created previously.
- Click Next.
- Select Add and Update as the Data Action.
-
Select Map by Header Row.
Note Attribute names in the segment you’re exporting must match the field names in the data extension. If the data extension column names don’t match, select Map by Ordinal or Map Manually. - Click Next.
- Review the configuration.
- Click Finish.
- Add and configure more activities as necessary.
- Click Save.
-
To test the automation, click Run Once. New records appear
on the target data extension.
Note To test the automation, there must be a file in the outbound SFTP folder. - When testing is complete, activate the automation by clicking Active and then Activate.
Did this article solve your issue?
Let us know so we can improve!

