Installing the Google Workspace Add-On
Copy
Aras Workspace Productivity Connector 33 will modify Google Workspace to add the integration components.
Enable Google App Script API
- Go to Google Apps Script Settings.
- Click on Google Apps Script API and enable the toggle.
Create Project in Google Workspace
- Paste this URL in your browser: Google Cloud Console and you will land on the Google Cloud Project page.
- Tick the “I agree…” mark and click “Agree and Continue”.
- Once the dialog is closed, click on “Select a project”.
- Click “New project” and name it.
- In Notifications, click “Select project”.
- This will take you to the dashboard page of your project.
- In the search box type “Apps Script API” and hit enter. You will see App Script API in the list.
- Select Apps Script API
- Click on it and click “Enable” button.
- For each of the APIs listed below, repeat steps 8 and 9, replacing “Apps Script API” with the corresponding API name:
(see below) Google Docs API
(see below) Google Sheets API
(see below) Google Slides API
(see below) Google Drive API
Workspace Connector Package Deployment on Google
PreSetup
- Open the WorkspaceConnectorDeploymentPackage from the Release Package into Windows Explorer
- Copy the directory path and open PowerShell window in administrator mode.
- Navigate to the copied path using following command
- Run the following command in the PowerShell window to install npm packages: npm install
- Run the following commands in the PowerShell window to login to your Google account:npm run login
- This will generate an authorization link to authorize login account.
- It will open a login screen on the browser.
- Select an appropriate account to login.
- It will open a confirmation box. So, click “Continue” and the click “Allow”.
- Once login is successful, you will see a success message.
- Then go back to the command prompt and locate the local path where credentials file named clasprc.json is generated.
- Copy that file and paste it at the root level of the package (in case already exists then overwrite it).
Project setup at Google
Execute the following command from PowerShell (current directory path is the same as selected in the previous step): npm run setup
- This will create a standalone script in Google Cloud.
- To verify navigate to My Projects - Apps Script (google.com) and you will see project.
- Click on that project and navigate to “Project Settings”.
- Locate the clasp.json file in the dist folder of the packages and move this file in the root folder of the package.
- From Project settings, click the “Change Project” button.
It will open a section which contains steps. In Step 1, click “here”.
- This will take you to the Project dashboard created earlier
- In the Project Info card, copy the Project Number. Then go back to step 4 and paste it into the field in step 10 labeled GCP Project Number, and click the Set Project button.
- It will give you the following error.
- Click on “OAuth Consent details” link and it will take you to Credentials page. Click on “Configure Consent Screen”.
- Click Get Started.
- Enter App Name as “Workspace Productivity Connector” and context user email id as email and click Next.
- Select User Type based on your preference and click on “Create”. For Organizational deployment select user type as Internal.
- Fill out the contact information and click Next.
- Select the checkbox and click Continue.
- After clicking Create, your project will be added to the list and visible in the console for further configuration.
- If you missed any configuration during setup, you can return to this screen anytime by visiting the OAuth consent screen settings.
- Click on Data Access
- Click Add or remove scopesand add the following scopes in the Manually add Scope section:
https://www.googleapis.com/auth/script.container.ui,https://www.googleapis.com/auth/documents.currentonly,https://www.googleapis.com/auth/documents,https://www.googleapis.com/auth/presentations,https://www.googleapis.com/auth/spreadsheets,https://www.googleapis.com/auth/script.external_request, https://www.googleapis.com/auth/drive.readonly,https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/drive.addons.metadata.readonly,https://www.googleapis.com/auth/drive.file, https://www.googleapis.com/auth/forms,https://www.googleapis.com/auth/forms.currentonly
- Click on Add to table
- Click on Update
- Scroll down and click Save
- Click on Audience
- Click Add Users
- Enter the user email ID
- Click Save
- Scroll Down at the bottom of the page and click on “Back to Dashboard”
- Click on Set Project
Project Deployment at Google
Open PowerShell again and make sure the current directory is set to the workspace deployment package path. Then, follow these steps:
- Run this command to install the tool needed to push your code to Google Apps Script: npm install @google/clasp
- Update the deployment HTML file:
- Navigate to:
WorkspaceConnectorDeploymentPackage\dist\sidebar-index-page.html - Open the .
htmlfile in Notepad++ - Find the token
<%INNOVATOR_BASE_URL%> - Replace it with your actual Innovator instance URL
- Save the file.
- Navigate to:
- Run this command to push your build on the specified script in your Google project:npx clasp push
- Verify deployment:
- Open the Google Apps Script project.
- Go to the Project History section.
- Ensure all project files and code are present, as shown below:
- Click the “Deploy” Button from the top-right corner of the Google AppScripts Project
- Select “New Deployment” from the dropdown.
- Select Type choose the Add-On, enter the name in the description field and click “Deploy”.
- Next, from the “Deploy” dropdown choose “Test Deployments”.
- Click “Install” on the dialog.
- Click “Done”.
- Open any Google Doc, Sheet, or Slide. In the bottom-right corner, click the arrow icon. This will open the sidebar, where you’ll see the new “Aras” add-on.
- Click on the Aras add-on. You’ll see the Google Authorization task pane. Click on it and sign in with your Google account. The first time, you’ll need to grant access.
- Once signed in, the Workspace Productivity Connector login task pane will appear.
- Once you login into your Innovator all the commands will be visible on task pane.
Organizational Setup
- Search for “Marketplace SDK” and enable it.
- Go to AppConfiguration
- Configure the following steps:
- App Visibility: Set to Private
- Installation Settings: Select the options as required
- App Integrations: Choose Google Workspace add-on and paste the Deployment ID from the Project Managed Deployment section
- Select applications for which this add-on is applicable
- Fill in Developer information section
- Click on Save Draft
- Go to Store Listing.Fill in the required details and publish the app. Once it’s published, the app will appear in the “Internal Apps” section on the “Get Add-ons” page.
- Click on it and search for “Workspace”. If the add-on is not already installed, you’ll be prompted to install it. If it is already installed, it will be shown as such.
- Click “Admin Install”and complete the setup.