hi I am trying to get and upload the csv file to dropbox and rename it with the first cell of the csv file (which is a date). I only want to parse the first row of csv. But now it’s parsing all the rows in the csv. Would really appreciate your help if you know how to improve this. TIA!
To only get the first row, you can use an array aggregator after the Parse CSV module.
Then, create a filter between the CSV and aggregator module with the following:
Bundle order position
Numeric operators: equal to
1
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!
hi, thanks for your reply. Do you think I can also change the setting of “Text” in the Text parser? Right now it’s “19.Column1” so it will parse every single line of column 1. Is it possible that we make it into something like “19.column1[0]” (which doesn’t work, but I need something similar to it) to get only the first cell?
No, because the Parse CSV is generating multiple BUNDLES, so the Text Parser has no idea about the number of rows. The module only runs when each bundle reaches it.
You need to create a filter before the Text Parser, to only allow the first row through.
Bundle order position
Numeric operators: equal to
1
If you need further assistance, please provide the following:
2. Scenario blueprint
Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
(Note: Exporting your scenario will not include private information or keys to your connections)
Uploading it here will look like this:
blueprint.json (12.3 KB)
3. And most importantly, Output bundles
Please provide the output bundles of the Parse CSV 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.
Uploading them here will look like this:
module-1-output-bundle.txt (12.3 KB)
B.
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:
-
Either add three backticks
```
before and after the code, like this:```
input/output bundle content goes here
``` -
Or use the format code 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.
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!