CSV
The Adobe Workfront Fusion CSV modules let you create CSV files and parse CSV text from a received text value or a file.
Access requirements
You must have the following access to use the functionality in this article:
To find out what plan, license type, or access you have, contact your Workfront administrator.
For information on Adobe Workfront Fusion licenses, see Adobe Workfront Fusion licenses.
Create CSV
The Create CSV Aggregator lets you create a csv text from received text values.
For more information on aggregators, see Aggregator module in Adobe Workfront Fusion.
Create CSV (advanced)
The Create CSV (advanced) Aggregator lets you create a CSV text from received text values. It employs a data structure that defines the CSV columns in the resulting CSV file. Once defined, the columns appear as fields in the CSV module setup, and can be mapped to later module in the scenario.
For more information on aggregators, see Aggregator module in Adobe Workfront Fusion.
Let us assume you would like to export your Google contacts to a CSV file with two columns "Full Name" and "Email". The output bundle from the Google Contacts >Get contacts from a group module has the following structure. The email addresses are stored inside the Emails[]
item, which is an array of collections, each collection containing two items: Label
and Email
.
If you employ the simple Create CSV module, you are offered a list of checkboxes corresponding to a bundle's top-level items. If you attempt to tick Full name
and Emails
items, the Create CSV module produces the following output, which is probably not what you want:
"emails","fullName"
"[object Object]","Shon Winer"
"[object Object]","Lizeth Fulmore"
"[object Object]","Hilario Gullatt"
"[object Object]","Abby Eisenbarth"
Since the item Full Name
is of simple type Text, it is exported just fine. But the item Emails
, which is of a complex type Array of Collections, is exported as [object Object], which is how Collections and Arrays are transformed to text by default. For more information, see Item data types in Adobe Workfront Fusion.
To export content of the Email
item of the first collection of the Emails[]
array instead, it is necessary to employ the Create CSV (advanced) module. The module enables you to define individual columns of your CSV file and map items to them, including the nested ones.
-
Insert the module Create CSV (advanced) in a scenario and open its configuration.
-
Click the Add button next to the Data structure field to create a new Data structure.
-
Write in a name for the Data structure and click the Add item button to add the individual columns. If you want to export two columns: "Full Name" and "Email", the resulting Data structure would look like this:
-
Once you have successfully defined the Data structure, fields corresponding to each individual column should appear in the configuration of the Create CSV (advanced) module so you can map the items. Take the first item from the
Emails[]
array and map its itemEmail
to the field/column Email: -
Execute the scenario. Since the item
Emails[1]: Email
mapped to column "Email" is of simple type Text, it exports correctly now:"Full Name","Email"
"Shon Winer","Shon@Winer.com"
"Lizeth Fulmore","Lizeth@Fulmore.com"
"Hilario Gullatt","Hilario@Gullatt.com"
"Abby Eisenbarth","Abby@Eisenbarth.com"
Parse CSV
The Parse CSV transformer lets you parse CSV text from a received text value or a file.