Is it possible to have a google script detect new email from gmail and import a csv to sheets from an attachment? I was using Zapier but after 6+ months my zap is suddenly now broken and I’m in need of a fix…FAST! Trying Integromat I think I was close but couldn’t quite get it.
I am unsure if you can do this with scripts. Which email service are you using? I use outlook and thankfully Microsoft in all of their wisdom allows VBA programming in outlook so I have VBA running code to download all attachments and emails to different folders so that I may use them in Power Bi and Glide.
I’ve never tried it, but I’m sure it’s possible. But way way easier with Integromat, I’d imagine.
I really try to avoid scripts when there is an easier way…
Why are you watching a GDrive folder?
I thought you were trying to parse an email attachment?
What does your full scenario look like?
PS. We’re starting to cross the line into Integromat support, here…
PS2. I’m not an Integromat expert by any stretch of the imagination (someone like @V88 might be able to offer better advice)
So in both cases you have a CSV that you need to parse and, I guess, for each row you then add a row to a Google Sheet? Where is the sticky point? I have used Integromat lots but never with CSV.
When you are parsing any form of file, Integromat makes it really simple. Just get the file then dump its contents (e.g. data) into the CSV / JSON / XML field of your parsing module. I am out at the moment but will take a look later in you’re still stuck.
So. What you need to do is add another module in between Watch Files in Folder and Parse CSV. This should be a Download File module. It will download the file to Integromat. You can then use the Data output from this module to feed the CSV input to the Parse CSV module. And all will work as planned!