> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superjoin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Automating Sequential Data Refreshes in Superjoin Workflows

> This guide walks you through building a workflow in Superjoin to automate sequential data refreshes.

## Demo

<Frame>
  <iframe width="560" height="315" src="https://www.youtube.com/embed/a13cI8exl60?si=Q9XXh8mCxAG9PDN1" title="Superjoin Sequential Refreshes" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen />

  <Caption>Demo: Build a dynamic dashboard in Google Sheets with Superjoin</Caption>
</Frame>

<Info>
  This walkthrough sets up a monthly refresh in a Chargebee MRR dashboard where one sheet updates only after another—preventing inconsistencies from unsynchronized refreshes.
</Info>

## Why sequential refreshes?

When sheets depend on one another—such as an <em>Active Subscription</em> sheet that relies on an <em>Existing Data</em> sheet—refreshing both at the same time or out of sequence can create inaccuracies. By automating refreshes sequentially, Superjoin ensures your dependent data stays consistent and reliable, even if the first refresh requires multiple attempts.

<Divider />

## Prerequisites

<CardGroup cols={2}>
  <Card title="Chargebee MRR dashboard" icon="file-spreadsheet" iconType="duotone">
    Have the dashboard installed in Google Sheets and connected to Superjoin.
  </Card>

  <Card title="Two sheets configured" icon="table" iconType="duotone">
    1. Existing Data (Chargebee) 2) Active Subscription (Chargebee)
  </Card>
</CardGroup>

<Tip>
  In the <em>Active Subscription</em> sheet, there's a copied column named <strong>existing subs</strong> used to cross-reference subscription IDs.
</Tip>

<Frame>
  <img src="https://usercontent.in.prod.clueso.io/6b101750-ec89-4e66-83bb-0b9079219f65/c499d374-2922-493a-954d-81402b6307e4/c571fdad-d09e-4255-91d7-982acc3e3f2e/images/dd1b2f25-f0ac-4224-982a-f1afb3ff4891.png" />

  <Caption>The 'existing subs' column in the Active Subscription sheet</Caption>
</Frame>

## Understand the dependency

The <em>Active Subscription</em> sheet uses a lookup to check whether a subscription ID exists in the <em>Existing Data</em> sheet.

<Frame>
  <img src="https://usercontent.in.prod.clueso.io/6b101750-ec89-4e66-83bb-0b9079219f65/c499d374-2922-493a-954d-81402b6307e4/c571fdad-d09e-4255-91d7-982acc3e3f2e/images/0c299726-d3b4-48fb-8143-172413ca4eef.png" />

  <Caption>The formula cross-references the Existing Data sheet for matches</Caption>
</Frame>

<Callout>
  Because of this formula, the <em>Active Subscription</em> sheet depends on the <em>Existing Data</em> sheet. Sequence matters for accuracy.
</Callout>

<Divider />

## Why not just time buffer?

The Active Subscription sheet must refresh <strong>after</strong> the Existing Data sheet refreshes. Scheduling the refreshes 30–60 minutes apart is unreliable—if the first refresh fails and retries, the second could run too soon.

<Check>
  Superjoin Workflows provide true sequence control: each step runs only after the previous completes successfully, with built‑in retries.
</Check>

<Divider />

## Build the workflow

<Steps titleSize="h3">
  <Step title="Open Workflows">
    In Superjoin, open <strong>Workflows</strong> in the sidebar and click <strong>Create New Workflow</strong>.

    <Frame>
      <img src="https://usercontent.in.prod.clueso.io/6b101750-ec89-4e66-83bb-0b9079219f65/c499d374-2922-493a-954d-81402b6307e4/c571fdad-d09e-4255-91d7-982acc3e3f2e/images/78a1debf-12e4-4961-8d95-0ddf8cd7f4c6.png" />

      <Caption>Start a new workflow</Caption>
    </Frame>
  </Step>

  <Step title="Configure the trigger">
    Choose when the workflow starts. For this example, select <strong>Scheduled Time</strong> and set it to run monthly.

    <Frame>
      <img src="https://usercontent.in.prod.clueso.io/6b101750-ec89-4e66-83bb-0b9079219f65/c499d374-2922-493a-954d-81402b6307e4/c571fdad-d09e-4255-91d7-982acc3e3f2e/images/715e4ea8-a3b6-447b-a69c-ff01b5ac2052.png" />

      <Caption>Select a trigger type</Caption>
    </Frame>
  </Step>

  <Step title="Add sequential actions">
    Add your first action: <strong>Import Data</strong> for the <strong>Existing Data</strong> sheet. Save the action.

    <Frame>
      <img src="https://usercontent.in.prod.clueso.io/6b101750-ec89-4e66-83bb-0b9079219f65/c499d374-2922-493a-954d-81402b6307e4/c571fdad-d09e-4255-91d7-982acc3e3f2e/images/0a28daca-015c-47d3-a3d5-e70c6bf55cb9.png" />

      <Caption>Completed sequential workflow</Caption>
    </Frame>

    Then add a second <strong>Import Data</strong> action targeting the <strong>Active Subscription</strong> sheet.
  </Step>

  <Step title="Review and save">
    Your workflow now triggers monthly at 12am, first refreshing the <strong>Existing Data</strong> sheet, then—only after success—refreshing the <strong>Active Subscription</strong> sheet. This sequencing prevents mismatches and ensures accurate reporting.

    <Frame>
      <img src="https://usercontent.in.prod.clueso.io/6b101750-ec89-4e66-83bb-0b9079219f65/c499d374-2922-493a-954d-81402b6307e4/3d8234f5-8f14-4b75-9d39-dbf694e06c7b/images/c5a02de3-62dd-4818-8f9f-eb3b6259e95b.png" />

      <Caption>Completed sequential workflow</Caption>
    </Frame>
  </Step>
</Steps>

<Divider />

## Next steps

* Configure notifications or exports after refreshes
* Explore error handling and alerts for greater reliability
* Browse other workflow patterns in the docs

<Tip>
  With Superjoin Workflows, you’re a few clicks away from dependable, automated spreadsheet data syncs.
</Tip>
