anaplan-connector-docs

Setup & User Guide

Anaplan Connector for Google Sheets™


Welcome to the Anaplan Connector!

This comprehensive guide will walk you through everything you need to know to set up and use the Anaplan Connector for Google Sheets. Whether you’re connecting to Anaplan for the first time or looking to master advanced features, this guide has you covered.

What You’ll Learn:

Time Required: 15-20 minutes for initial setup

Prerequisites: Google Sheets account + Anaplan account (organizational domain recommended for OAuth)


Table of Contents

  1. OAuth Setup Wizard (First-Time Setup)
  2. Authentication Setup
  3. Configuration - Connecting to Anaplan
  4. Refresh Sheets - Batch Data Updates
  5. Scheduling - Automated Refreshes
  6. Quick Actions - Formatting & Cloning
  7. Dark Mode
  8. Multi-Model Support (Advanced)
  9. Troubleshooting & FAQs
  10. Technical Details

1. OAuth Setup Wizard (First-Time Setup)

Important: If you plan to use OAuth/SSO authentication, you must complete this one-time setup first. This configures the OAuth client in your Anaplan tenant and establishes the connection between Google Sheets and Anaplan.

When to complete this: Before your first OAuth login (one time per organization)

Who should do this: Anaplan administrator with OAuth client management permissions

1.1 Accessing the Setup Wizard

  1. Open your Google Sheet and navigate to Extensions > Anaplan Connector > Setup OAuth Client
  2. The OAuth Setup Wizard will open
  3. Select your role: IT Administrator (if you have OAuth credentials) or End User (if you need credentials from IT)

OAuth Setup Wizard welcome screen OAuth Setup Wizard welcome screen - Select your role

1.2 Configuring Your Anaplan OAuth Client

The wizard requires you to create an OAuth client in your Anaplan tenant first. Follow these steps:

Step 1: Get the Redirect URI

  1. In the Setup Wizard, you’ll see a Redirect URI displayed
  2. Copy this URL - you’ll need it for your Anaplan OAuth client configuration
  3. Example format: https://script.google.com/macros/d/{SCRIPT_ID}/usercallback

Step 2: Create OAuth Client in Anaplan

  1. Log into your Anaplan tenant as an administrator
  2. Navigate to Administration > OAuth Clients
  3. Click “Create OAuth Client” or “New Client”
  4. Configure the OAuth client with these settings:
    • Name: “Google Sheets Connector” (or your preferred name)
    • Grant Type: Authorization Code
    • Redirect URI: Paste the URI you copied from Step 1
    • Scopes: Select appropriate data access scopes for your use case
  5. Save the OAuth client
  6. Copy the Client ID - you’ll need this in the next step

Important: Some Anaplan tenants may require you to also note the Client Secret. If your OAuth client configuration provides a client secret, copy it as well.

Step 3: Enter Client ID in Setup Wizard

  1. Return to the OAuth Setup Wizard in Google Sheets
  2. If you selected End User role, you’ll see the credentials input form
  3. Paste your Client ID into the “Client ID” field
  4. Enter the Client Secret in the corresponding field
  5. Select your Anaplan Region from the dropdown

OAuth credentials input form Enter your Client ID, Client Secret, and select Anaplan Region

Validate & Continue button Click “Validate & Continue” to proceed

  1. Click “Validate & Continue”

Step 4: Verify Setup

  1. The wizard will validate your configuration and test the connection to Anaplan

Verifying connection Verifying connection to Anaplan (this may take a few seconds)

  1. You’ll see a success message: “Connection Successful!”

Connection successful Connection successful - OAuth setup complete!

  1. Your OAuth setup is now complete!

Troubleshooting:


2. Authentication Setup

The Anaplan Connector supports two authentication methods. Choose the one that works best for your organization.

OAuth/SSO provides the most secure authentication with 90-day token validity, eliminating the need to re-enter credentials frequently. This method is recommended for organizational Anaplan accounts.

Why OAuth/SSO?

Steps:

  1. Open your Google Sheet and navigate to Extensions > Anaplan Connector > Open Sidebar
  2. In the login section, click on the authentication method selector to expand it
  3. Select “SSO/OAuth” as your authentication type
  4. Click the “Login” button to initiate the OAuth flow
  5. You’ll be redirected to Anaplan’s authorization page - log in with your organizational credentials
  6. Grant the requested permissions when prompted
  7. After authorization, you’ll be redirected back to Google Sheets with an authenticated session

Opening the sidebar (Extensions > Anaplan Connector) Opening the sidebar (Extensions > Anaplan Connector)

Selecting SSO/OAuth authentication type Selecting “SSO/OAuth” authentication type

Login button and OAuth consent screen Login button and OAuth consent screen

Successfully authenticated state Successfully authenticated state

Success! Once authenticated, your OAuth token is valid for 90 days. The connector will automatically refresh it when needed - you won’t need to log in again unless you explicitly log out.


1.2 Basic Authentication (Alternative)

Basic Authentication works with any Anaplan account type, including personal domains. While it requires you to enter your credentials directly, it’s a simple and reliable option.

Note About Basic Auth: Basic Authentication requires entering your Anaplan email and password directly. While your credentials are securely stored in Google’s infrastructure and never leave Google Sheets, OAuth/SSO is recommended for enhanced security.

Steps:

  1. In the sidebar, click on the authentication method selector
  2. Select “Basic Auth”
  3. Enter your Anaplan email address
  4. Enter your Anaplan password
  5. Click the “Login” button
  6. Wait for authentication to complete

Selecting Basic Auth authentication type Selecting “Basic Auth” authentication type

Entering Anaplan email/password Entering Anaplan email/password

Successfully authenticated with Basic Auth Successfully authenticated with Basic Auth

Authenticated! You’re now logged in with Basic Authentication. Your credentials are stored securely in Google’s UserProperties service and are isolated to your user account.


3. Configuration - Connecting to Anaplan

Once authenticated, you need to configure which Anaplan workspace and model you want to connect to, then fetch the exports or saved views you want to use in Google Sheets.

3.1 Workspace & Model Selection

Anaplan organizes data hierarchically: Workspaces contain Models, which contain Exports and Saved Views. You’ll need to select the workspace and model that contains your data.

Understanding Anaplan Hierarchy:

Steps:

  1. Expand the “Configuration” section in the sidebar
  2. Click the “Workspace” dropdown to see available workspaces
  3. Select your target workspace
  4. Click the “Model” dropdown to see models within that workspace
  5. Select your target model

Configuration tab expanded Configuration tab expanded


3.2 Fetching Exports

Exports are pre-configured data extractions from Anaplan. They’re typically set up by Anaplan model builders and provide a consistent way to pull specific datasets.

When to Use Exports:

Steps:

  1. With your workspace and model selected, click “Fetch Exports”
  2. The connector will retrieve all available exports from your selected model
  3. A dropdown list will populate showing all available exports
  4. Select an export from the dropdown
  5. Click “Save Configuration”
  6. The current sheet will be configured to pull data from that export

Fetch Exports button “Fetch Exports” button

Export list populated Export list populated

Selecting an export Selecting an export

Export configured and saved Export configured and saved

Export Configured! Your sheet is now configured to pull data from the selected Anaplan export. You can refresh this data at any time using the Refresh Sheets feature.


3.3 Fetching Saved Views

Saved Views provide more flexibility than exports. They allow you to filter data by dimensions (page selectors) and customize what data you pull.

When to Use Saved Views:

Steps:

  1. With your workspace and model selected, click “Fetch Views”
  2. The connector will retrieve all saved views from your selected model
  3. Select a view from the dropdown
  4. If the view has dimensions (filters), you’ll see page selector dropdowns appear
  5. For each dimension, select the specific item(s) you want to filter by
  6. Click “Save Configuration”
  7. The current sheet will be configured with your view and filters

Fetch Views button “Fetch Views” button

Views list with filters/dimensions Views list with filters/dimensions

Configuring page selectors (filters) Configuring page selectors (filters)

View configured and saved View configured and saved

View Configured! Your sheet is now configured to pull filtered data from the selected Anaplan saved view. Each time you refresh, the data will update with your specified filters applied.

Important: Page Selectors Use IDs, Not Names

The connector uses internal Anaplan IDs for page selectors, not display names. Always select items from the dropdown rather than typing names manually. The sidebar handles this automatically - you’ll see readable names but the correct IDs are used behind the scenes.


4. Refresh Sheets - Batch Data Updates

The Refresh Sheets feature allows you to update multiple configured sheets at once with intelligent batching and progress tracking.

4.1 Understanding the Refresh Sheets Interface

The Refresh Sheets interface provides a centralized view of all your configured sheets and allows you to refresh them individually or in batches.

Intelligent Batching Features:

Steps:

  1. Click the “Refresh Sheets” button in the sidebar
  2. A modal dialog will appear showing all configured sheets in your workbook
  3. Sheets are grouped by their source Anaplan model (if using multi-model feature)
  4. Each sheet shows a checkbox for selection and its configuration type (Export or View)

Refresh Sheets HTML popup Refresh Sheets HTML popup


4.2 Running a Batch Refresh

Once you’ve selected the sheets you want to refresh, the connector handles everything automatically with real-time progress updates.

Steps:

  1. Check the boxes next to the sheets you want to refresh (or use “Select All”)
  2. Click “Refresh Selected”
  3. Watch the progress indicators:
    • Batch Progress: Shows which batch is currently processing (e.g., “Batch 2 of 4”)
    • Sheet Progress Bars: Individual progress for each sheet (0-100%)
    • Status Messages: Real-time updates like “Fetching data”, “Writing to sheet”, etc.
  4. When complete, you’ll see a summary showing how many sheets succeeded
  5. Check your sheets - data is updated and a timestamp appears in cell B1

Refresh Selected button clicked “Refresh Selected” button clicked

Progress indicators (batch X/Y, sheet progress bars) Progress indicators (batch X/Y, sheet progress bars)

Completion summary (X/Y succeeded) Completion summary (X/Y succeeded)

Updated sheet with timestamp in B1 Updated sheet with timestamp in B1

Expected Performance:

Batch optimization typically reduces total time by 15-20% compared to sequential processing.

Automatic 401 Recovery: If your authentication token expires during a refresh (rare with 90-day OAuth tokens), the connector will automatically refresh it and retry the operation. You won’t need to manually log in again!


5. Scheduling - Automated Refreshes

Set up automated schedules to refresh your Anaplan data at regular intervals without manual intervention.

5.1 Creating a Schedule

Schedules use Google Apps Script time-based triggers to automatically refresh your configured sheets and send email notifications with results.

Schedule Features:

Steps:

  1. Expand the “Schedule” section in the sidebar
  2. Click the Frequency dropdown and select your desired schedule type:
    • Hourly: Run every N hours (1-24)
    • Daily: Run at a specific time each day
    • Weekly: Run on specific day(s) at a specific time
    • Monthly: Run on a specific day of the month at a specific time
  3. Configure the schedule settings based on your selection:
    • For hourly: Select hour interval (e.g., every 2 hours)
    • For daily: Select time of day
    • For weekly: Select day(s) of week and time
    • For monthly: Select day of month and time
  4. Enter your email address for notifications
  5. Click “Create Schedule”
  6. Confirm the schedule creation

Schedule tab expanded Schedule tab expanded

Frequency selection dropdown (hourly/daily/weekly/monthly) Frequency selection dropdown (hourly/daily/weekly/monthly)

Time/day configuration Time/day configuration

Email notification setup Email notification setup

Create Schedule confirmation “Create Schedule” confirmation

Time Zone Notice: Schedules run in your Google account’s time zone. Make sure your Google account time zone settings match your intended schedule time zone.

Schedule Created! Your schedule is now active. The first run will occur at the next scheduled time. You’ll receive an email notification with the results, including a direct link to view your spreadsheet.


5.2 Managing Schedules

View, edit, and manage all your active schedules from the Schedule section.

Steps:

  1. The Schedule section shows a list of all active schedules
  2. Each schedule displays:
    • Frequency type and settings
    • Email notification address
    • Last run time (if applicable)
    • Status (Active/Disabled)
  3. To disable a schedule, click “Disable Schedule”
  4. To delete a schedule permanently, click “Delete Schedule”

Email Notifications Include:

Authentication and Schedules: Schedules require valid authentication to run. The connector automatically validates your auth token before executing scheduled refreshes. If your token has expired and can’t be refreshed automatically, you’ll receive a notification email and the schedule will be disabled to prevent repeated failures.


6. Quick Actions - Formatting & Cloning

Quick Actions provide powerful utilities for managing your Anaplan data in Google Sheets.

6.1 Format Configured Sheets

Automatically apply professional formatting to all your Anaplan-configured sheets with a single click.

What Gets Formatted:

Steps:

  1. Expand the “Quick Actions” section in the sidebar
  2. Click “Format Configured Sheets”
  3. The connector will identify all sheets with Anaplan configurations
  4. Formatting is applied to each sheet automatically
  5. You’ll see a success message listing which sheets were formatted

Formatting Complete! All your configured sheets now have consistent, professional formatting. You can re-run this anytime to reapply formatting if you’ve made manual changes.


6.2 Clone Workbook with Configurations

Create a complete copy of your workbook while preserving all Anaplan sheet configurations - perfect for templates, backups, or sharing with team members.

What Gets Cloned:

Copied to the clone:

NOT copied (security & technical limitations):

Steps:

  1. In the Quick Actions section, click “Clone Workbook”
  2. A confirmation dialog will appear explaining what will be cloned
  3. Confirm that you want to proceed
  4. The connector creates a copy of your workbook with a “Copy of [name]” title
  5. All sheet configurations are temporarily stored for transfer
  6. A success message appears with a direct link to open the cloned workbook
  7. Click the link to open the cloned workbook
  8. When the cloned workbook opens, configurations are automatically applied
  9. Users of the cloned workbook will need to log in separately

Workbook Cloned Successfully! Your cloned workbook has all the same sheet configurations as the original. Team members can open it, log in with their own Anaplan credentials, and immediately start refreshing data without reconfiguring anything.

Configuration Transfer Process: The clone operation uses a two-step process: First, configurations are stored temporarily in UserProperties. Then, when you open the cloned workbook, those configurations are automatically transferred to the new workbook’s DocumentProperties. The cloned workbook must be opened at least once to complete the configuration transfer.


7. Dark Mode

The Anaplan Connector includes a beautiful dark mode with iOS-style design, perfect for low-light environments and reducing eye strain.

Dark Mode Features:

Steps:

  1. Look for the dark mode toggle button in the bottom-right corner of the sidebar
  2. It shows a ☀️ sun icon in light mode, 🌙 moon icon in dark mode
  3. Click the toggle to switch between light and dark modes
  4. Watch the smooth transition as all colors change
  5. Your preference is automatically saved
  6. The sidebar will open in your preferred mode next time

Dark Mode Activated! The sidebar is now in dark mode with OLED-friendly colors. Your preference is stored in Google’s UserProperties service and will persist across sessions and even different spreadsheets!


8. Multi-Model Support (Advanced)

Advanced users can configure different sheets in the same workbook to pull data from different Anaplan models - a powerful feature for consolidated reporting.

Multi-Model Capabilities:

How Multi-Model Works

Steps:

  1. Configure one sheet with data from Model A (select Model A in Configuration)
  2. Switch to a different sheet in the same workbook
  3. Select Model B in the Configuration section
  4. Configure this sheet with data from Model B
  5. Repeat for as many models as needed
  6. When you open Refresh Sheets, you’ll see sheets grouped by model
  7. Each model group shows a badge and count
  8. Refresh works seamlessly across all models in a single operation

Use Cases for Multi-Model:

Important: Re-save Legacy Configurations

Sheets configured before the multi-model feature was added may not have stored model IDs. If you see a warning about “legacy configurations” in Refresh Sheets, simply re-save each sheet’s configuration while connected to its source model. The connector will capture and store the model IDs for future refreshes.


9. Troubleshooting & FAQs

Common Issues & Solutions

Authentication Failures

Issue: Login fails or shows “Not Authenticated” error

Solutions:


Missing Exports or Views

Issue: “Fetch Exports” or “Fetch Views” returns empty or missing items

Solutions:


Refresh Errors

Issue: Sheets fail to refresh or show errors

Solutions:


Schedule Not Running

Issue: Scheduled refreshes don’t execute at the expected time

Solutions:


401 Errors (Not Authenticated)

Good News: As of version data_v.77 + auth_v.29, 401 errors are handled automatically!

Automatic Recovery:

If you still see 401 errors:


Frequently Asked Questions

How long do authentication tokens last?

OAuth/SSO: 90 days with automatic refresh capability Basic Auth: Tokens are refreshed as needed


Can I use the connector with personal Gmail accounts?

OAuth/SSO: Requires organizational domain (@yourcompany.com) Basic Auth: Works with any Anaplan account, including personal domains


Is my data secure?

Yes! All data remains within Google’s infrastructure. Authentication tokens are stored in Google’s secure UserProperties service, isolated per user. The connector never sends your data to external servers. See the Technical Details section for more information.


How many sheets can I refresh at once?

There’s no hard limit, but performance is optimal with 10-20 sheets per refresh. The intelligent batching system will group sheets efficiently regardless of quantity.


Can I refresh data from multiple Anaplan models?

Yes! The multi-model support feature (v.76+) allows you to configure different sheets to pull from different Anaplan models. See Section 7 for details.


What happens if my token expires during a refresh?

The connector automatically detects expired tokens, refreshes them, and retries the request. You won’t need to manually re-authenticate unless the refresh fails (rare).


Can I schedule refreshes to run when I’m not online?

Yes! Schedules run on Google’s servers using time-based triggers. You don’t need to be online or have the spreadsheet open.


Contact & Support

Need Help?

Email Support: support@anaplansheetsconnector.com Report Issues: GitHub Issues Documentation: Full Documentation Response Time: Typically within 1 business day


10. Technical Details (Appendix)

OAuth Scopes Explained

The Anaplan Connector requests the following Google OAuth scopes:

Required Scopes & Why:

https://www.googleapis.com/auth/spreadsheets Purpose: Read and write data to Google Sheets Used for: Updating sheet data, reading configurations, storing preferences

https://www.googleapis.com/auth/script.external_request Purpose: Make external requests to Anaplan’s API Used for: Fetching data from Anaplan, authenticating with Anaplan

https://www.googleapis.com/auth/userinfo.email Purpose: Read user email address Used for: User-specific auth token storage, email notifications

https://www.googleapis.com/auth/script.scriptapp Purpose: Manage Apps Script triggers Used for: Creating and managing scheduled refreshes

Minimal Permissions Principle: The connector only requests the minimum scopes necessary for functionality. We do NOT request access to Drive files, Gmail, Contacts, or any other Google services beyond what’s required for spreadsheet operations.


Data Storage & Privacy

Where is data stored?

DocumentProperties (Spreadsheet-level):

UserProperties (User-specific):

ScriptCache (Temporary, 10-minute TTL):

UserCache (Temporary, 5-minute TTL):


What data is sent to external servers?

Anaplan API Only: The connector ONLY communicates with Anaplan’s official API (api.anaplan.com and auth.anaplan.com)

No third-party services: We do not send your data to any third-party analytics, tracking, or storage services

Data sent to Anaplan:

Data received from Anaplan:


Security Best Practices


Anaplan Connector for Google Sheets™

© 2025 - anaplansheetsconnector.com

Google Sheets is a trademark of Google LLC. Anaplan is a trademark of Anaplan, Inc. This connector is an independent tool and is not officially endorsed by Google or Anaplan.