How to compare current csv input to data from previous run and only execute for new and changed rows

Hi all,

I have the following scenario running:

  • Http get a file - gets a csv feed
  • Parse CSV
  • Translate content via Deepl API
  • Google Sheets - add a row - that writes the translated content to a csv file

The problem is, that every run all content in the CSV is being translated. This is of course not necessary for content that hasn’t changed since the previous run.

So, I’m looking for a way to:

  1. Store the data from the input CSV (Exists of 2 columns. 1. ID, 2. Content)
  2. Compare this data to the data stored in the previous run
  3. Filter out only new rows (If ID didn’t exist in previous run) and changed rows (if ID existed, but content changed since previous run)
  4. Translate the new and changed rows
  5. Update rows / add rows to the Google sheet

I’ve been puzzling, but can’t get it to work. Any help would be very much appreciated!

Thanks,
Daan

1 Like

Welcome to the Make community!

For further assistance, please provide the following:

1. Screenshots of module fields and filters, and any error messages

Please share screenshots of relevant error messages, module fields, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. And most importantly, Input/Output bundles

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

Here are two ways to format text so that it won’t be changed by the forum:

A. Type code block manually
Add three backticks ``` before and after the content/bundle, like this:

```
content goes here
```

B. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!