Training / Working source

Move a Google Sheet into your private warehouse.

Run one reviewed import, read its receipt, then decide what the rows actually say. This method sends the active tab when you choose Run. It does not turn on a background sync or send an email.

01 / Prepare the sheet

Use one header row and at most 1,000 tab rows.

02 / Check the tab

Review headers, cell length and UTF-8 request size.

03 / Send to the private API

Use your scoped token to select the workspace.

04 / Verify the receipt

Match the saved dataset ID and actual row count.

The script is a customer-run bridge into an existing API, not a Seven16-hosted Google OAuth connector.

Lesson 01 / Source

Give every column a meaning.

The first row is the header. Use 1–30 distinct headers; each must be 1–80 characters. The script reads the values displayed in the active tab, so check date formats, currency, percentages and formulas before you run it. Blank data rows are skipped.

Fictional three-row sheet
campaignsourceleads
Spring AForm4
Spring AReferral2
Spring BForm3

What the example can show

Spring A2 rows
Spring B1 row

These bars count source rows, not attributed leads or campaign performance. The three rows and the bars are invented for training.

Lesson 02 / Permission

Choose the workspace before sending.

Sign in, open the intended workspace, and go to Warehouse. An owner or admin must enable API intake and issue a personal token with warehouse.write. The endpoint derives the destination workspace from that live token; the sheet name cannot redirect an import to another tenant.

Copy the token once and keep it private. The script asks for it on each run and does not save it. Keep the spreadsheet and its bound script limited to trusted editors, because editors can change code before it runs.

Lesson 03 / Run

Install a script you can inspect.

  1. Download the Google Sheets script and open the file as text.
  2. In your Google Sheet, choose Extensions → Apps Script. Replace the starter text in Code.gs with the downloaded script and save it.
  3. Select pushActiveSheetToSeven16 and click Run. Review the permissions Google requests for reading the sheet and making an external HTTP request.
  4. Paste your warehouse.write token into the script prompt. Do not paste it into a cell, the code, an email or a shared document.

Google documents how bound scripts use the active sheet and how URL Fetch sends the request. The Seven16 script runs only when a person invokes its function; it creates no trigger.

Lesson 04 / Evidence

Match the receipt to the rows.

A confirmed import shows a saved dataset ID and row count. For the fictional tab above, the expected receipt is 3 rows. Refresh Warehouse in that same workspace, find the new dataset, and compare its source rows before using a chart or query.

Source rows

3

Expected receipt rows

3

Source type

API push

The receipt proves what Seven16 saved, not that the original sheet is complete or that its labels represent real business outcomes. Use the warehouse field guide to check coverage and units.

Lesson 05 / Recovery

An uncertain response is not a failed import.

No response, tab unchanged

Check Warehouse for a receipt. If none is visible, run the same function again. The saved UUID is reused for the same body.

Tab changed after an uncertain request

The script blocks the new body. Check for the earlier dataset first. Only then run clearSeven16PendingImport and approve its confirmation before sending changed rows.

A 403 can mean intake is off or the token lacks scope. A 409 means a request key was reused with different content; investigate the earlier receipt. A 429 means the workspace reached its daily import limit. The script never retries automatically.

Lesson 06 / Boundaries

Keep the first connection small and reviewable.

  • At most 1,000 tab rows after the header; blank rows are skipped. Use 1–30 columns, at most 2,000 characters per cell, and a JSON body of at most 250,000 UTF-8 bytes.
  • At most 100 new API imports per workspace per UTC day. A same-key, same-body replay returns the earlier receipt.
  • Only the active tab is sent. Displayed values are sent as text; the script does not pull other Drive files, schedule refreshes or write back to Google.
  • This source path makes no paid tool call and uses no Command credits. Google Apps Script quotas and the customer's Google permissions still apply.

Start with the fictional three-row example, verify its receipt, then use a small real tab whose provenance, consent and sharing permissions you understand.

Next action

Make one source traceable.

Download the script, run one small tab, and compare the receipt to the rows you meant to send.