Skip to main content

Hello!

 

I’m trying to set up a zap that when I receive a new email from a specific address that has a .csv attachment, I upload that to my google drive, then copy the data into a master sheet. I have all of that working fine, and it works as intended.

 

The problem I’m encountering now, is that I just received the second email from that address that has a .csv attached, and it has new/different headers. Apparently every time the .csv comes from this specific source about 80% of the headers are the same, but there are some differences in the headers. Even some headers that existed previously are now in a different order.

 

That is frustrating, and I was wondering if it was possible to have a zap align all headers with pre-existing ones, and then if there is a new column/header it hasn’t encountered yet, to create a new column with the data.

 

Thank you so much in advance

Hey there, ​@codemonkeylikesfritos 👋

It’s been a while since you posted this, did you manage to get it sorted? 

If so, we’d love it if you could share some details of the solution you found - it would be super helpful for others that might be running into a similar issue. 🙏

And if not, I wonder if you might be able to Zapier Agents for this 🤔 Thinking you could potentially get the agent to map the relevant values to the most relevant column/header fields regardless of the order they’re supplied and add a new column if there isn’t one that’s a good fit. If you’ve not tried agents before you can learn more about how to set them up here: Build an agent in Zapier Agents

Keep us posted on our progress, want to make sure you’re all set!