Skip to main content

Short context:

I have a CSV with multiple rows, I want to create an action based on the data per row, and loop it for the number of rows I have so I repeat the action. Example, creating a a ticket in Linear, per row in the CSV.

Details:
I have a CSV file that is uploaded to a google drive and triggers the Zap. The CSV have a “Title” column and a “Description” column.

The CSV goes into a formatter that imports the CSV file.

I now added a looper, and said “create loop from line items”.

I’ve set up the looper to match line items “Title” and “Description”. I mapped each to “Output Line items”. 

I in the end now I have the “create issue” in Linear fetching “Title” and “Description” from the looper. I added a “Project” but decided to skip it since it’s not necessary for the issue creation.

What breaks:
The title becomes “Title:rFirst row title], Second row title],sThird row title]…

The description becomes:  “Description:]First row description],oSecond row description],iThird row description]…

What I tired:

I tried using splitter on title and description before the loop. The issue then is that my “description” text contains “,”, and since the separator is also “,” it breaks up the description texts. 
Even if the CSV contains “Description, text” zapiers splitter ignores the “” and finds the comma anyway.

 

Sharing screenshots of the looper and Linear. I assume this is where I’ve done wrong. 

 

 

Hi ​@Patbos,

 

Welcome to the Community. 

 

To properly loop through a CSV file in Zapier, ensure that in the loop step, you select the corresponding fields from the formatter step for "Title" and "Description" rather than manually typing them. This allows the loop to create line items based on the data provided. Use the Loop step's output fields in the Linear action step to populate each issue with the current row's title and description. If the splitter treats the line as a single string, use a Formatter step with the "Line-item to Text" transformation to correctly parse the CSV data into line items for each row.

 

I hope this helps! Please let me know if you have any other questions.


Hi ​@Patbos 

Make sure to NOT use the variables from the Looping step that have “Preview”.

Help link for using Looping in Zaps: https://zapier.com/apps/looping/help

 


Hey there, ​@Patbos! 👋

Did selecting the Title and Description fields from the Looping action, instead of the Preview Loop Values versions of those fields help to get it working correctly?

Want to ensure this gets sorted so let us know if you need any further help! 🙂


Hi, I didn’t manage to get it to work, no. But somewhere mid trying and discussing online with others, I got another tool recommended in a forum. This lead me to solve the automation in another way in the end. 


Hi ​@Patbos,

 

I'm sorry to hear about the trouble with Zapier. I'm glad you found a tool that works for your automation needs! If you try Zapier again or have questions, feel free to reach out; we're here to help. We'd also love to know about the tool you found, as it could benefit others in our community.


Reply