Documentation

Import from Gmail

The most secure way of importing email messages from Gmail is by using OAuth 2.0 authorization. It allows the app to access Gmail accounts without storing any user passwords and without using older and less secure authentication methods.

To use this Import method on-premises, your server must have a public SSL domain with an internet access.

Creating Google App

To enable import from Gmail, first you need to create an app in Google that will configure access and authorization settings, which will then be used by Ultimate Forms to gain access to the mailbox data.

  1. Log into Google API Console at https://console.cloud.google.com/
  2. Create a new project and provide a descriptive name
  3. Switch to the newly created project.
  4. In the main menu, click on APIs and Services, then Library


  5. Search for Gmail, then select Gmail API.
  6. Click on Enable.
  7. Once the API is enabled, proceed to configure the OAuth consent screen. It will be shown when you establish the connection to the app from the Import profile in Ultimate Forms. Click on OAuth consent screen in the menu on the left.
  8. If you are a Google Workspace user, you can choose to limit the app to internal users only, otherwise you have to select External
  9. Click on Create.
  10. Now enter the required fields:
    1. App name - a descriptive name, such as Support email import.
    2. User support email - select your own user.
    3. Authorized domain - enter infowisesolutions.com for usage in SharePoint Online or your site collection external domain for usage on-premises. It will allow our app to send authorization requests.
    4. Developer contact information - enter your own email (doesn't have to be a gmail account).
  11. Click on Save and Continue
  12. Under Scopes, search for Gmail and select https://www.googleapis.com/auth/gmail.readonly
  13. Note: this is one of restricted scopes, which means it requires a higher level of scrutiny to be approved. You don't actually need to approve the app though, as it's going to only be used internally.
  14. Click on Save and Continue.
  15. Under Test Users, enter the email of the Gmail mailbox[es] you are planning to import from. In most cases it will be the same email as the user who is creating the app, but there is no actual limit.
  16. Click on Save and Continue, you can overview your changes now.
  17. Now click on Credentials. Here we will configure the client ID and client secret pair to be used by Ultimate Forms.
  18. Click on Create Credentials at the top and choose OAuth client ID.
  19. Under Application type, select Web application.
  20. Under Name you can enter Ultimate Forms.
  21. Under Authorized redirect URIs enter https://www.infowisesolutions.com/apps/uf/FormConnection/SFTokenReceived for SP online, or {Your site collection external URL}/_layouts/15/Infowise/Settings/SFTokenReceived.html for On-premises.
  22. Click on Create.
  23. Copy Cliend ID and Client Secret that you are now shown.
  24. You are done configuring the Google app.

Configuring Import Profile

  • Open Ultimate Forms and select list, form or object where you want to set up an import profile.
  • Click on Import to switch to import settings.
  • Click on Add new profile, then enter a name for the new profile.
  • Switch to Data provider tab.
  • Select Gmail protocol.
  • Enter client ID and client secret of the Google app.
  • Click on Connect. A pop-up will be shown, make sure pop-up blocker is disabled.
  • In the pop-up, choose the Google account you want to import from.
  • A warning is now shown, choose Continue.
  • Ensure all access scopes are selected and click on Continue.
  • Actions tab will now become visible and you must create at least one action.
  • Note that you do not need to make any changes to Client ID or Client Secret in the future, they are stored safely within the profile. Client Secret will not be shown again inside the profile.
Last modified: 12/15/2022 12:27 PM
Loading...

Add your comment

Comments are not designed to replace support calls. If you have a specific issue with one of our products, please send an email to support@infowisesolutions.com to open a support ticket.