Importing applications with Zapier
Thanks to a direct integration with Zapier, importing applications into your Good Grants account has never been easier! To import your applications, you'll need a few things:
- An Good Grants account on the Premium subscription level or higher
- A Zapier account (the Zapier plan you need will depend on the number of applications you wish to import)
- A Google Sheet containing the historical data you want to import
To get started, follow these steps:
Step 1: prepare your Google Sheet
Setting up the application form in Good Grants and preparing your Google Sheet will be the most time-consuming step in this process. You'll need to ensure that every piece of information you've collected outside of the platform is represented with its own unique field in Good Grants. For example, if you ask for an applicant's employer, you will need to create a field in Good Grants asking for that same information.
The Google Sheet you create will need to contain a row for each application and, as a minimum, you will need to provide Good Grants with the applicant slug, category slug, chapter slug, season slug, and the application title. Please see our dedicated guide, What is a slug?, for more information. Any additional application fields you wish to import will also need to be created in Good Grants first and then these slugs added to the Google Sheet.
Your external applicants can be imported into the platform in just a few steps outlined here: Adding new users.
If you want to upload files you'll need to provide the URLs for the files as a column in the Google Sheet. For this tutorial we're going to import one single file upload field for each application.
Here's an example spreadsheet we've prepared so you can see the format.
Step 2: create an API key in Good Grants
In order to properly connect your Good Grants account with Zapier and import application data, you will need to create an API key. Here's how:
- In the Manage workspace, navigate to Settings > Integrations > API keys
- Click Generate API key
- Give the key a name and select Read / Write under 'Scope'
- Save
Step 3: use the provided 'create new' applications Zapier template
- From the Manage workspace, go to Settings > Integrations > Zapier
- Choose Google Sheets under the 'with this one!' field
- Under 'Popular with Good Grants users' click Create applications and users in Good Grants from new or updated Google Sheets rows
- Log in to your Zapier account
- Select your Google Sheets account
- Continue
- In the 'Set up trigger' area, select your drive, the spreadsheet containing your applications, the worksheet within that spreadsheet with your applications present, and the trigger column
Tip: we recommend setting this to any_column so that any change reflected in the spreadsheet will update your Good Grants account. - Continue
- Test your trigger using the button provided by Zapier
- Once Zapier finds a spreadsheet row, click Continue
- In the 'Action Event' step, choose Create Application
- Continue
- When prompted, click Sign in to Good Grants
- Provide the API key that you generated in Step 2
- Continue
- Once rerouted back to Zapier, click Continue
- Select your program's chapter, category, and season from the corresponding drop-downs
- In the Applicant drop-down, choose the applicant slug column from your spreadsheet
- In the Title drop-down, choose the title or application name column from your spreadsheet
- Select your desired application fields from the drop-down
- Continue
- Test your automation by clicking Test & Continue
- When ready, turn on your Zap using the small toggle at the bottom of the page
Step 4: importing your applications
When you're ready to import your applications into your Good Grants account, follow these steps:
- Log into your Zapier account
- Navigate to the Zaps page in the navigation
- In your list of Zaps, toggle on the Good Grants integration
- Open the drop-down and select Run
- Once the data has loaded from Google Sheets, click the Select All followed by Send data to Zap
If you need to upload additional files then you can add more steps to the Zapier template, selecting the Good Grants app, and then Upload Application File for the Action Event where outlined in step 11 from the previous section.
Upload single file upload fields and attachments
To upload files to Good Grants the data must be in base64 format. This next step will convert a file URL to base64 for you and this can then be inserted into the Good Grants database. You will need to add the Code by Zapier app as the next step.
Select Run Javascript and click Continue. For the input data select the file URL from the spreadsheet.
Then paste in this code:
const response = await fetch(inputData.url);
const content = await response.buffer();
const data = content.toString("base64");
output = [{ data }];