Netsuite Integration with Google Drive

Solution

Google Drives can be integrated into NetSuite using their API.

Overview

  1. Configure your Google Cloud project and app: During development, you register your app in the Google Cloud console, defining authorization scopes and access credentials to authenticate your app with an API key, end user credential, or service account credential.
  2. Authenticate your app for access: When your app runs, the registered access credentials are evaluated. If your app is authenticating as an end user, a sign-in prompt might be displayed.
  3. Request resources: When your app needs access to Google resources, it asks Google using the relevant scopes of access you previously registered.
  4. Ask for user consent: If your app is authenticating as an end user, Google displays the OAuth consent screen so the user can decide whether to grant your app access to the requested data.
  5. Send approved request for resources: If the user consents to the scopes of access, your app bundles the credentials and the user-approved scopes of access into a request. The request is sent to the Google authorization server to obtain an access token.
  6. Google returns an access token: The access token contains a list of granted scopes of access. If the returned list of scopes is more limited than the requested scopes of access, your app disables any features limited by the token.
  7. Access requested resources: Your app uses the access token from Google to invoke the relevant APIs and access the resources.
  8. Get a refresh token (optional): If your app needs access to a Google API beyond the lifetime of a single access token, it can obtain a refresh token.
  9. Request more resources: If additional access is needed, your app asks the user to grant new scopes of access, resulting in a new request to get an access token

For authentication reference: Learn about authentication & authorization  |  Google Workspace  |  Google Developers

Enable Google Drive API from the Google API library in the cloud account.

Google Drive API doc reference: Google Drive API  |  Google Developers

Drive API allows to:

  • Download files from Drive and upload files to Drive.
  • Search for files and folders stored in Drive. Create complex search queries that return any of the file metadata fields in the Files resource.
  • Let users share files, folders, and drives to collaborate on content.
  • Combine with the Google Picker API to search all files in Drive, then return the file name, URL, last modified date, and user.
  • Create third-party shortcuts that are external links to data stored outside of Drive, in a different datastore or cloud storage system.
  • Create a dedicated Drive folder to store application-specific data so the app cannot access all the user’s content stored in Drive.
  • Integrate your Drive-enabled app with the Drive UI using the Google Drive UI. It’s Google’s standard web UI that you can use to create, organize, discover, and share Drive files.
  • Apply labels to Drive files, set label field values, read label field values on files, and search for files using label metadata terms defined by the custom label taxonomy.

For Developers,

Leave a comment

Your email address will not be published. Required fields are marked *