parsing gmail message automatically and inserting results into google spreadsheet - google-sheets

A colleague of mine is a small builder here in London. He works all over town. He uses many different suppliers.
Most suppliers send him their sales invoice via email when he buys something.
My friend could set up a gmail address to be used only by suppliers. But could emails sent to it be "automagically" processed and their contents inserted into a google spreadsheet ?
What is the relative practicality of what I've outlined ?
Tom

So, your query finally boils down to two questions:
Save PDF attachments from Inbox to Google Drive
Parse PDFs and store the data into google spreadsheet
Save PDF attachments
This can be easily achieved by processing the attachments from the emails and storing them google drive. This link will help you achieve the same. Kindly go through the script provided in the sheet for better understanding.
Parse PDF attachments
After storing the PDFs in google drive, you could easily retrieve the content via Document Class using method getBlob or getBody as per your requirement and store in google spreadsheets.

Yesterday I've used mailpareser to parse an order email and create a google spreadsheet raw for each line item in the order. So this is now automatic.
I've found this question with google so it's still relevent.

Related

Can Google Sheets be set up to propogate templates to existing children based on them?

I'm working for a company who want me to move their shared drive (NAS) to Google Drive get us working collaboratively.
Currently we have a central spreadsheet which has a bunch of information about each aircraft we work on, which mail merges into word docs. When we need to do a specific thing (like weigh the aircraft) we need to generate a document to store with the details on it. We open a template word doc and use the mail merge deature to find the reg of the aircraft and Word's mail merge pulls in the rest of the info into the doc. Great stuff!
We're moving to Google Drive to work more collaboratively. Is there a way of doing this same thing on GDrive? I can see ways of having a google sheet pull info from a master spreadsheet in this way, but not google Docs (which will work better because of the way you can format tables).
My research shows that this is easy with a google sheet but I need to use a google doc really, for the formatting flexibility.

Generating a google doc template from google sheets?

I am trying to create a google doc that is fed by a google sheet. Each row created in the sheet needs to generate a google doc in which the information in the row is inserted into the document template in the correct places. Any experience generating docs from individual rows in sheets and could assist with this?
I am not sure if this is the solution you are looking for, but you may want to try this.
Make a table with google sheet like this one:
create a new document within google drive, and type the variables with double brackets like this: {{name}}
Go to the add-ons market in g suite market place, and search for document studio.
With it, you can generate files with custom data from a google sheet.
(it has a free trial with limit to 20 document a month per user if I remember correctly).
After you install it, access your google sheet again and open the add on. It will look like this:
Choose your google doc, and the add-on will automatically identify the variables you listed.
You can then select the file output type (PDF, WORD etc..). The add-on can send the file via email if needed as well.

Extract data from Google docs to Google sheets

I am working within the same Google drive folder.
I have a number of Google Docs, which all contains a number of tables in the same format. What I want is to export the data from each table in to according rows in a google spreadsheet. I think the function should be automated to run ones every day. The first problem I am bumping in on is to open the different Doc files and extract the tables - any surgestions on how to do that?
The folder is access protected, but both the Docs and Sheet are placed within the same folder.
BR.
Torben
You will need to use the Drive API and export the documents as HTML. Then you will need to parse the HTML yourself to extract the table data. Finally use the Sheets API to insert that data into your spreadsheet.

Can I use google doc's to collect information from multiple users?

Currently I have a ASP.Net app, which display excel like form which collects data from user based on the template I setup. More I searched, I could very well use Google Doc's or Office 365 to create a excel like template and then send the link to users to enter the data. The users enter the data in the google doc template or office 365 template and I can have a common backend process which can query the docs and do what i want to do. I have couple of questions in this model
Can I create one template and send it to multiple users and they use the template to create their own document instead of overwriting my template?
Is it possible to add macros like excel in the docs/office 365?
I want the all the operation with zero foot print to client.
Thanks
Using Google Forms, you can create a form and send it as an email to your users, with their responses being automatically entered in a Google Docs spreadsheet. Then you can analyze that data in the spreadsheet using all the normal spreadsheet functionality (formulas, macros, etc).

Using Google Spreadsheet as DB for apps

I want to use Google spreadsheets to store data online so multiple people can enter and maintain data, then publish or export (csv, xls, ods) the sheet for their application. What is the easiest way to process the sheet? If the data can be accessed as a link the updates could be immediately reflected in the client's app.
This article Data Scraping Wikipedia with Google Spreadsheets discusses using Google spreadsheets as an application platform.
It already has features that allow you to share the spreadsheet with multiple editors, as well as the ability to define forms that you can invite people to fill out who's results will be entered into the spreadsheet as a row.
Just in case its still vaguely of interest 5 months later, there is a SQL-like wrapper language for Google Spreadsheets at:
http://gqlx.twyst.co.za
Its very much an alpha release - but maybe its of some use or perhaps the code could give you some ideas.
I think if I am clear on your requirements, you want to store your data online in a Google Spreadsheet where multiple people can access that right? Then you want an app to use that data? Correct me if I am wrong.
It is possible to have Google spreadsheet as a database and the client app can directly access that data through APIs - spreadsheet APIs . If you want a simple link where people can go and update - you can also have a web app using google apps scripting. very simple to use and would solve your purpose too , why to export your data to ods, xls, csv, make your app directly over Google Spreadsheet. Would be maintainable too.

Resources