You can use Google Drive as an affordable system for managing documents. it’s a common scenario. When a Permission Form is signed, or a Leave Approval workflow completes, or a Purchase Order is received, you want to save the documents somewhere. Many companies still save them in email folders as attachments or manually drop them into a shared network drive. With you can automatically upload them to Google Drive.
We’ve created a sample form and a shared Google Drive folder for demo purposes. Ironically, it’s a paper permission form that a parent must sign so students can use less paper and do things electronically
Click on the link above or on the image, fill in a student name, sign the form and enter an email address (don’t worry, it’s only used for this demo to email you the signed PDF. We won’t save it, it won’t appear on the PDF and it won’t be saved to Google Drive). When you submit, the form gets uploaded to Google Drive and saved in a folder with the student’s name so you can easily find it later. You’ll also get an email.
On This Page:
Step 1: Obtain the Google Account Access Token
Form designers must obtain a Google access token for every Google account you wish to use with your forms/flows. For example if you connect your forms/flows to a Google account info@frevvo.com and support@frevvo.com, you will need to obtain two access tokens.
Follow these steps to use the frevvo Google connector consent UI to obtain an access token for each Google Account.
Open your web browser and login to your Google Account
Go to:
Live Forms Online Cloud customers: https://app.frevvo.com/google/consent
- Live Forms In-house customers: http://<your frevvo server domain name>/google/consent
Click Allow if you see the message below: This gives access to your account even when your device is turned off.
Copy the access token. THIS IS VERY IMPORTANT. The token is used as the password for wizards and rules.
Repeat steps 1-2 for all Google accounts you will be using with the frevvo Google connector.
An access token generated for a in-house installation running the Google connector, will not work with the Google connector running in the frevvo cloud. You must generate a separate token for each environment.
It is very important to save the token once you obtain it for a given account. The token allows the connector to access the account. There is a limit on the number of tokens that are issued per client-user combination. If the token limit is exceeded, older refresh tokens stop working. A token can be revoked if it is not used in a 6 month period.
Step 2: Connect your own form or workflow to Google Drive.
- In Google Drive, create a parent folder that will hold all the submissions for this form.
- In the Form Designer, simply click on the Doc Actions (what happens to my data) wizard and select the “Save to Google Drive” option.
- In the wizard that appears, enter your credentials (see above for how to get an access token).
- Select the parent folder you created earlier in Step 1.
- For Submission folder, you may enter a fixed value (not recommended) or use a template. In this case, we have chosen the StudentsName control. For example, if you enter John Adams in the Student Name control, the submission documents will be stored in a subfolder called JohnAdams.
If you want to save a pdf of your form/flow to the Google folder, make sure you have Save PDF checked. An optional field that is used to name the pdfs displays. You can use templates in this field. For example, if you have a control called EmployeeName in your form, you can type {EmployeeName} into the PDF Name field and the pdf's in the Google folder will be named {EmployeeName}.pdf
- If you leave the PDF Name property blank, uses the flow/form name as the pdf file name. The pdf may not generate if the Form Name contains special characters. To avoid any issues, name your form/flows using characters that are suitable for filenames and explicitly set the pdf name in the form/flow using the same standard. Following the POSIX filename standard (A–Z a–z 0–9 . _ - ) will ensure it works.
- If a form does not reach the specified folder in your Google Drive successfully, notifies the tenant admin of the failure via an email. If a flow does not reach the specified folder in your Google drive successfully, the flow administrator(s) - if configured - and the tenant admin receive the email.
Troubleshooting
"An unknown error has occurred" message
You may see the error message "An unknown error has occurred" when selecting your Google sheet from the dropdown after you log into the wizard with your Google account and access code. To prevent this, set the Share permission for your Google Sheet to private then run the Save to Google Spreadsheet wizard. Change the share permission to public once the wizard is completed. Click here for other reasons this error may occur.