Skip to main content

Google Cloud Firestore

With Google Cloud Firestore modules in Make, you can work with documents in your Google Cloud Firestore.

To use the Google Cloud Firestore modules, you must have a Google account and a Firebase project created in your Google Firebase Console. You can create an account at accounts.google.com. See Google's Create a Firebase account documentation for more information regarding how to create a Firebase project.

Refer to the Cloud Firestore API documentation for a list of available endpoints.

Note

Make's use and transfer of information received from Google APIs to any other app will adhere to Google API Services User Data Policy.

Connect Google Cloud Firestore to Make

To establish the connection, you must:

Create and configure a Google Cloud Console project for Google Cloud Firestore

Before you establish the connection in Make, you must create and configure a project in the Google Cloud Console to obtain your client credentials.

Create a Google Cloud Console project for Google Cloud Firestore

To create a Google Cloud Console project:

  1. Log in to the Google Cloud Console using your Google credentials.

  2. In the top menu, click Select a project > New project.

  3. Enter a Project name and select the Location for your project.

  4. Click Create.

  5. In the top menu, check if your new project is selected in the Select a project dropdown. If not, select the project you just created.

Enable APIs for Google Cloud Firestore

To enable the required APIs:

  1. Open the left navigation menu and go to APIs & Services > Library.

  2. Search for and enable the following APIs: Google Cloud Firestore API, Firebase Management API, and Google Cloud Storage JSON API.

Create your Google Cloud Firestore client credentials

To create your client credentials:

  1. In the left sidebar, click Credentials.

  2. Click + Create Credentials > OAuth client ID.

  3. In the Application type dropdown, select Web application.

  4. Update the Name of your OAuth client. This will help you identify it in the console.

  5. In the Authorized redirect URIs section, click + Add URI and enter the following redirect URI: https://www.integromat.com/oauth/cb/google-custom

  6. Click Create.

  7. Copy your Client ID and Client secret values and store them in a safe place.

You will use these values in the Client ID and Client Secret fields in Make.

Establish the connection with Google Cloud Firestore in Make

To establish the connection in Make:

  1. Log in to your Make account, add a Google Cloud Firestore module to your scenario, and click Create a connection.

  2. Optional: In the Connection name field, enter a name for the connection.

  3. In the Client ID and Client Secret fields, enter the values you copied in the Create your Google Cloud Firestore client credentials section above.

  4. Click Sign in with Google.

  5. If prompted, authenticate your account and confirm access.

    If you are connecting to your unverified Google app, you may receive a notice stating Google hasn't verified this app. If so, click Advanced > Go to integromat.com and allow Make (formerly Integromat) access. This allows you to connect to your unverified app.

You have successfully established the connection. You can now edit your scenario and add more Google Cloud Firestore modules. If your connection requires reauthorization at any point, follow the connection renewal steps here.

Build Google Cloud Firestore Scenarios

After connecting the app, you can perform the following actions:

Documents

  • Watch New Documents

  • Watch New Documents (Advanced)

  • Create a Document

  • Get a Document

  • Get Documents

  • List Documents

  • List Collection IDs

  • Query Documents

    Note: Every query requires an index. For the most basic queries, Google Cloud Firestore creates indexes by default. Some queries require you to set up an index manually. Follow the steps below to set up the Index.

    1. Run the Query Documents module with a request that requires creating a new index.

    2. After the module fails, open the output, and copy a link under the error message.

    3. Open the link in your browser. You will be redirected to the Indexes tab in Google Cloud Firestore.

    4. Click Add index.

    5. Run the Query Documents module with the same request again.

  • Update a Document

  • Delete a Document

Storage

Note: You need to have the Blaze Plan for your Firestore account to use the Storage modules.

  • Backup to Google Cloud Storage

  • Restore from Google Cloud Storage

Other

  • Make an API Call