> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/navigate.md). Agents can also search and read this documentation through its [MCP server](https://docs.avonnicomponents.com/~gitbook/mcp).

# Navigate

Open the clicked opportunity, a new record form, a custom tab or a website from a row action or button in an Avonni Flow Screen Component.

An account executive reviews open deals on a flow screen and wants the full record of one of them. With a **View** row action wired to **Navigate**, one click opens that opportunity's record page. The same interaction opens a new record form, a list view, a custom tab, another app or a website.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FM7s0yVnCgePBZbp3qPGj%2Fnavigate-result.png?alt=media" alt="Opportunity record page opened from the View row action of an Avonni Data Table"><figcaption><p>Clicking View on a row opens that opportunity's record page.</p></figcaption></figure>

## Before you start

* A screen flow with an Avonni [Data Table](https://docs.avonnicomponents.com/flow/flow-components/data-table.md) of open opportunities (Name, Account Name, Stage, Amount, Close Date) on a query data source.
* A **View** row action on the table: an **Action** column with a row action labeled `View`, named `view`. [Creating Row Actions](https://docs.avonnicomponents.com/flow/tutorials/components/data-table/creating-row-actions.md) adds one.
* Navigate is offered by every component that has an **Interactions** tab. A component without one, such as the Chart, needs a Button beside it to carry the action.

## Build it

Choose how you want to build:

✨ **Build with AI**: give your AI assistant a ready-to-use prompt.

🛠️ **Build with clicks**: follow the steps in the builder yourself.

{% tabs %}
{% tab title="Build with AI" icon="wand-magic-sparkles" slug="navigate-build-with-ai" %}
The `avonni-flow-components` skill drafts the Navigate interaction on the Data Table's row action; your sandbox must already hold the flow and its Data Table.

{% stepper %}
{% step %}

### Set up the Avonni Skills and MCP server

Follow [Setup](https://docs.avonnicomponents.com/flow/build-with-ai/setup.md) to install the Avonni Skills, connect your AI assistant to the Avonni MCP server, and sign in to your sandbox through Salesforce CLI.

You need the screen flow with the opportunities Data Table and its `View` row action.
{% endstep %}

{% step %}

### Copy the prompt and review the plan

Paste the prompt into your configured assistant. Check the target org and the field mappings in its plan before you approve it.

{% prompt description="Prompt for this tutorial" icon="wand-magic-sparkles" openInAIProviders="false" defaultExpanded="partial" %}
{% code overflow="wrap" collapsedlinecount="10" %}

```
Use the avonni-flow-components skill. Check the Data Table component and the Navigate interaction (NavigationMixinNavigate) against the Avonni MCP server before you write anything.

Inspect my sandbox: find the screen flow "Review open deals", its Avonni Data Table on Opportunity, and the Action column with the row action named view. Confirm they exist before wiring anything.

On the Data Table, add a Row Action interaction with Target Name view, Type Navigate, Page Reference Type Record Page, Object Api Name Opportunity, Record Id set to the clicked row's Id ({{Record.Id}}) and Action Name View. Leave Open Console Tab off.

Show me the plan and the field bindings before writing files. Then draft the local metadata, list what is left to set up by hand, and stop before deployment or activation.
```

{% endcode %}
{% endprompt %}
{% endstep %}

{% step %}

### Deploy to the sandbox and check the result

Review what the assistant generated and what it left for you to configure. Deploy the approved files to your sandbox only, finish any remaining setting with the **Build with clicks** tab, then run the flow and click **View** on a row: that opportunity's record page opens.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="Build with clicks" icon="screwdriver-wrench" slug="navigate-build-with-clicks" %}
{% stepper %}
{% step %}

### Add a Row Action interaction

1. In Flow Builder, select the Data Table on the screen and click **Open Component Builder**.
2. Open the **Interactions** tab and add a **Row Action** interaction.
3. In **Target Name**, pick `View`. Each row action gets its own interaction.
4. Set **Type** to **Navigate**.
   {% endstep %}

{% step %}

### Point it at the clicked opportunity

1. Set **Page Reference Type** to **Record Page**.
2. In **Object Api Name**, pick `Opportunity`.
3. In **Record Id**, pick the row's Id field, shown as **Record: Id** (`{{Record.Id}}`).
4. Set **Action Name** to **View**. **Edit** opens the record form, **Clone** a copy.

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FRGNhdct6uWjj4uIhZi9i%2Fnavigate-panel-record-page.png?alt=media" alt="Navigate interaction set to Record Page on the Row Action trigger of a Data Table" width="320"><figcaption><p>A Navigate interaction on the View row action, set to Record Page.</p></figcaption></figure>
{% endstep %}

{% step %}

### Save and test

Click **Done**, save the flow and run it from a Lightning page or app. Click **View** on any row: that opportunity's record page opens in the same window.
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**Navigate leaves the flow screen.** On a row action, every type except **External URL** opens in the current window, so the user leaves the review screen. To keep the screen, open the record in a console subtab (see [Open in a console tab](#open-in-a-console-tab)) or open the work in a dialog with [Open Flow Dialog](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/open-flow-dialog.md).
{% endhint %}

## Settings reference

| Setting                 | What it does                                                                                                                                                                                                                |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Target Name**         | The action that fires the interaction, such as the `View` row action.                                                                                                                                                       |
| **Page Reference Type** | The kind of destination. The fields below it change with the type.                                                                                                                                                          |
| **Target**              | Shown under **Page Reference Type** on triggers without a record, such as **Click** on a Button or **Header Action** on a Data Table: **Current Window** (default) or **New Window**. It has no effect on **External URL**. |
| **Open Console Tab**    | Opens the destination in a Lightning Console tab. See [Open in a console tab](#open-in-a-console-tab).                                                                                                                      |

### Page reference types

| Page Reference Type                          | Use it to                                                    | Fields                                                                                                                                     |
| -------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **App**                                      | Switch to another Lightning app                              | **App Target**: the app Id or developer name, such as `standard__LightningSales`                                                           |
| **External Record Page (CMS Connect pages)** | Open a CMS Connect record in a site                          | **Record Id**, **Object Info** (**CMS Source Name**, **CMS Type Name**)                                                                    |
| **External URL**                             | Open a website                                               | **Url**, **Target** (on triggers tied to a record: **New Tab/Window** by default, or **Current Window**)                                   |
| **Knowledge Article**                        | Open a Knowledge article                                     | **Article Type**, **Url Name** (the article's `UrlName`)                                                                                   |
| **Lightning Component**                      | Open an addressable component                                | **Component Name** (`namespace__componentName`), **Parameters** (**Name** and **Value**)                                                   |
| **Login Page**                               | Log a site user in or out                                    | **Action Name**: **Login** or **Logout**                                                                                                   |
| **Named Page (Experience Builder sites)**    | Open a page of the site the flow runs in                     | **Page Name** (its API name), **Parameters**                                                                                               |
| **Named Page (Standard)**                    | Open Home, Chatter, Today, Data Assessment or a file preview | **Page Name**, **Record Ids** (with **File Preview** only: comma-separated file Ids)                                                       |
| **Navigation Item Page**                     | Open a custom tab                                            | **Tab Api Name**, such as `Sales_Dashboard`                                                                                                |
| **Object Page**                              | Open an object's home, a list view or a new record form      | **Object Api Name**, **Action Name** (**Home**, **List**, **New**), **Prefilled Values** and **Use Record Type Check** (with **New** only) |
| **Record Page**                              | View, edit or clone a record                                 | **Object Api Name**, **Record Id**, **Action Name** (**View**, **Edit**, **Clone**)                                                        |
| **Record Relationship Page**                 | Show a related list of a parent record                       | **Object Api Name**, **Record Id**, **Relationship Api Name**, such as `Opportunities`                                                     |

* **Prefilled Values** takes **Field** and **Value** pairs. A **New** action on Opportunity can arrive with **Account** filled in: [Add a New Opportunity button that opens a prefilled record form](https://docs.avonnicomponents.com/flow/tutorials/interactions/how-to-create-an-interaction-to-navigate-to-an-object.md).
* **Use Record Type Check** lets the user pick a record type before the form opens.
* A Lightning web component opened with **Lightning Component** must be wrapped in an Aura component that implements `lightning:isUrlAddressable`.

### Open in a console tab

In a Lightning Console app, any page reference type can open in a workspace tab instead of the current page. Outside a console app, a click with **Open Console Tab** on does nothing.

| Setting                                             | What it does                                                                                  |
| --------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| **Open Console Tab**                                | Opens the destination in a console workspace tab.                                             |
| **Open Console Sub Tab**                            | Opens it as a subtab instead.                                                                 |
| **Parent Tab Id**                                   | Optional. The tab that receives the subtab. Empty, the tab the user is on becomes the parent. |
| **Record Id**                                       | Optional. A record to open in the tab.                                                        |
| **Url**                                             | Optional. A relative or absolute address to open in the tab.                                  |
| **Focus**                                           | Shows the tab at once. Off, it opens in the background.                                       |
| **Override Navigation Rules**                       | Opens the record as set here even when the app's console navigation rules say otherwise.      |
| **Label**, **Icon Name**, **Icon Alternative Text** | The text, icon and screen reader text of the tab.                                             |

To close, focus, relabel or highlight a tab that is already open, use [Control Console Tab](https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/control-console-tab.md).

### Links without an interaction

The [Header](https://docs.avonnicomponents.com/flow/flow-components/header.md) (**Title Link**) and the [Metric](https://docs.avonnicomponents.com/flow/flow-components/metric.md) (**Label Link**) carry the same **Page Reference Type** settings in their **Properties** tab, to turn a title or a label into a link.

## Troubleshooting

<details>

<summary>Nothing happens when the user clicks</summary>

* **Page Reference Type** is empty. Without a type the interaction stops silently.
* **Open Console Tab** is on and the flow runs outside a Lightning Console app.
* You are testing with **Debug** in Flow Builder, which gives the component no page to navigate from. Run the flow from a Lightning page, an app page or a quick action.

</details>

<details>

<summary>The website keeps opening in a new tab</summary>

On a row action, **External URL** has its own **Target** among its fields, and it defaults to **New Tab/Window**. Set that one to **Current Window**. The **Target** under **Page Reference Type** never applies to **External URL**.

</details>

## Related tutorials

* [Open a record from a Data Table row](https://docs.avonnicomponents.com/flow/tutorials/interactions/how-to-create-an-interaction-to-a-record-page.md): View, Edit and Clone row actions on the same deals table.
* [Add a New Opportunity button that opens a prefilled record form](https://docs.avonnicomponents.com/flow/tutorials/interactions/how-to-create-an-interaction-to-navigate-to-an-object.md): **Object Page** with **New** and **Prefilled Values**.
* [Send users to an external site or another Lightning page](https://docs.avonnicomponents.com/flow/tutorials/interactions/send-users-to-an-external-site-or-another-lightning-page.md): **External URL**, a custom tab and a standard page.
* [Open records in Console tabs and subtabs](https://docs.avonnicomponents.com/flow/tutorials/interactions/open-records-in-console-tabs-and-subtabs.md): keep the review screen open while the record opens beside it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avonnicomponents.com/flow/component-builder/interactions-panel/navigate.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
