Flower Docs
  • OpenFlower overview
    • The "Hello World" tutorial
  • Videos
    • OpenFlower in 100 seconds
  • 🆕Setup and run
    • Cloud & Private Cloud
    • Self-hosting
      • Access local database or API
      • Google Cloud Platform
      • Heroku
      • Migration from Openblocks
      • Update MongoDB Versions
      • OpenFlower Version Update
      • Traefik loadbalancer
      • SMTP Server
    • Security
  • 🏨Workspaces & Teamwork
    • Workspaces
    • Members and Groups
    • Permissions for Resources
    • OAuth
      • KeyCloak
      • Google
      • GitHub
      • Generic OAuth Provider
    • Query library
    • OpenFlower Marketplace
  • ✨Build Applications
    • Create a new App
      • Modules
      • Version and Release Management
    • App Editor
      • Visual Components
        • Common Component Settings
        • File upload
        • Charts and graphs
        • Image
        • Option lists
        • List View
        • Drawer
        • Google Maps
        • Table
        • Messages / Toast
        • Calendar
      • Date handling
      • Bulk Editing
      • Layers
      • Data selection & Javascript
      • Use Markdown
      • Keyboard shortcuts
    • App Navigation
    • App Interaction
      • Event handlers
    • Themes & Styling
      • Design an efficient and user-friendly form
      • Customize Styles
      • Component Styling Possibilities
  • 🚀Connect your Data
    • Data source basics
    • Data sources in OpenFlower
      • APIs as Datasource
        • REST API
        • GraphQL
        • Google Sheets
      • SQL Databases
        • MySQL
        • MariaDB
        • PostgreSQL
        • Microsoft SQL Server
        • Oracle
      • NoSQL Databases
        • MongoDB
        • CouchDB
        • DynamoDB
      • InMemory Databases
        • Redis
      • File Storages
        • S3 File Storage
      • BigData & OLAP
        • Big Query
        • Snowflake
        • ClickHouse
        • Elasticsearch
      • Websocket Datasource
    • Query basics
      • Bind Query Data to Components
      • Query library
  • 🪄Workflows
    • n8n Integration
  • 💫Business Logic in Apps
    • Write JavaScript
      • JavaScript query
      • Temporary state
      • Transformers
      • Data responder
      • Built-in JS functions
  • 🙌Publish Apps
    • Share an App
    • Publish an App
    • Embedd an App
      • Embed Apps in React
      • Native embed SDK
        • Build the SDK from Source
  • 🔥OpenFlower Extension
    • Opensource Contribution
      • Develop UI components for Apps
      • Develop Data Source Plugins
    • Use third-party libraries in Apps
      • Day.js Date handling
      • Import your own JavaScript Library
    • Custom component
    • OpenFlower Open REST API
Powered by GitBook
On this page
  • Authentication
  • Create a service account key
  • Share your Google sheet
  • Connect Google Sheets to OpenFlower
  1. Connect your Data
  2. Data sources in OpenFlower
  3. APIs as Datasource

Google Sheets

PreviousGraphQLNextSQL Databases

Last updated 7 months ago

Authentication

Follow the steps below to create a service account for your Google Cloud project and share your Google sheet through the **** service account key.

Create a service account key

Follow the steps below:

  1. Enable the of your Google Cloud project.

  2. Select APIs & Services > Credentials from the left panel.

  3. Click + CREAT CREDENTIALS > Service account to create a new service account.

  4. Get a service account key:

    1. Click the Email of the service account.

    2. Click KEYS > ADD KEY > Create new key.

    3. Select JSON as the key type.

    4. Click CREATE to download it.

Now the service account key, in a JSON format, is downloaded to your device. Make sure to keep it somewhere safe.

Share your Google sheet

Navigate back to to , and follow the steps below to share your sheet through the **** service account key.

  1. Open the JSON file of the key.

  2. Copy the value of client_email, which is an identity used for access management of your sheet.

  3. Click Share at the top right and paste the copied client_email value to add a member with access.

  4. Select Editor as the role and click Send.

When you see the notification Access updated, you have authorized this service account to edit your sheet.

Connect Google Sheets to OpenFlower

Follow the steps below:

  1. Click Data Sources on OpenFlower homepage.

  2. Click New Data Source on the top right. Note that this permission is restricted to workspace admins and developers.

  3. Select Database > Google Sheets as the type.

  4. Set its name and paste the whole content in the JSON flie of the key to Service Account.

  5. Click Save, and you can check it in your data source library later.

  6. To access and manipulate data in your app, you can fill in the Spreadsheet id and Sheet Name in a query editor as follows.

    The available methods are Read Data, Append Row, Update Row, and Clear Row.

🚀
Google Sheets API
Google Sheets