Skip to content
English
  • There are no suggestions because the search field is empty.

How do you install the MobileMind script in a Google Sheet for advanced reporting with the API? (Part 2)

The MobileMind script copies your district's MobileMind reports into a Google Sheet and refreshes them every day, so Looker Studio always has current data. Installing it takes about five minutes and needs no coding: you copy it, paste it and save.

 

Before you start...

  • Finish Part 1 first. You'll need your API key and Organization ID in Part 3, so have them saved somewhere private.
  • Use the Google account that will own the dashboard data. The sheet, the script and the daily refresh all run under this account.
  • Open the MobileMind script: [MobileMind script doc]

Let's begin...

 

  1. Copy the script. Open the MobileMind script doc, click anywhere in the text, press Ctrl+A to select everything, then Ctrl+C to copy it. On a Mac, use Cmd instead of Ctrl
    1- Google script doc
  2. Open your Google Sheet. Create a new sheet at sheets.new, or open the one you want your MobileMind data in. Give it a clear name, such as "MobileMind Data for Data Studio" (Formerly Looker Studio).
  3. Open Apps Script. In the sheet's menu bar, click Extensions, then Apps Script. The script editor opens in a new browser tab.2- sheet exxt apps-1
  4. Paste over the starter code. The editor already holds a few lines that start with function myFunction(). Click inside them, press Ctrl+A to select them, then Ctrl+V to paste the MobileMind script over them.3- script
  5. Save. Click the Save button (the floppy disk) above the code. Wait for the editor to show that it saved.4- save
  6. Reload the sheet. Go back to your sheet's tab and reload the page. After a few seconds, a new MobileMind menu appears next to Help.5- reload sheet7- MM toolbar

The MobileMind menu holds everything you need from here on: Set organization ID, Set API key, Refresh all reports now, and Turn on daily refresh (or Turn off daily refresh). You'll use them in Part 3.6- MM tools

Troubleshooting

There's no Apps Script option under Extensions. Your district's Google Workspace admin may have turned off Apps Script for your account. Ask them to turn it on for you, or use an account that has it.

The MobileMind menu doesn't appear. Reload the sheet again and wait about 10 seconds. If it's still missing, go back to the Apps Script tab and check that the code saved. Also make sure you opened Apps Script from this sheet's Extensions menu, not from a different sheet.

The editor shows an error when I save. Part of the script was probably left out when you copied it. Select everything in the editor, delete it, then copy the whole script doc again with Ctrl+A and Ctrl+C and paste it in.

I pasted the script into the sheet instead of the editor. Undo with Ctrl+Z, then follow step 3 to open Apps Script and paste it there.

What's next...

With the MobileMind menu in your sheet, continue to Part 3: Add your organization ID and key, and run the first refresh [link to Part 3 article].