---
schema_version: "1"
id: cfcf79a058a859e8bd33d18ffcff52331c0b5f1da8eec98d1b2cd09c96c9ba27
title: Navigate Action Lightning Web Component ReadMe (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_navigate_action_lightning_web_component_readme.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_navigate_action_lightning_web_component_readme.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8a927867791c38aafc465e5b37eb25e29f5bef76d08167c57ab43a35de0b8156
description: For the managed package runtime, this page contains a Navigate Action LWC ReadMe for each Vlocity release.
products:
  - Omnistudio
release: "264"
---
# Navigate Action Lightning Web Component ReadMe (Managed Package)

For the managed package runtime, this page contains a Navigate Action LWC ReadMe for each Vlocity release.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

## Vlocity Insurance and Health Spring '20

The _NavigateAction Lightning Web Component_ enables navigation to any of Salesforce's [PageReference](https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_page_reference_type) types, by leveraging Salesforce's [navigation service](https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_navigate).

## Available c-navigate-action Attributes

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e73">
              <p style="margin-bottom:0;">Attribute</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e79">
              <p style="margin-bottom:0;">Value</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e85">
              <p style="margin-bottom:0;">Type</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e91">
              <p style="margin-bottom:0;">Required</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e97">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">targetType</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">
              <p style="margin-bottom:0;">App, Component, Knowledge Article, Login, Object, Record, Record Relationship, Named Page, Community Named Page, Navigation Item, Web Page, Current Page</p>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">
              <p style="margin-bottom:0;">yes</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Specifies the name of the target PageReference type. Pass <code>undefined</code> for the current PageReference.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">targetId</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Specifies the 18 character record ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">targetName</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Specifies the API name of the component, object, tab, app or record.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">targetParams</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Adds state params sent to the target page reference.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">targetAction</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Specifies action passed to object, login and record <code>targetType</code>.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">targetArticleType</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">If the targetType is knowledgeArticle, specifies the articleType API name of the Knowledge Article record. In Communities, articleType is ignored.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">targetRelationship</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Specifies the API name of the object’s relationship field.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">replace</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">
              <p style="margin-bottom:0;">true or false (Default: false)</p>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">boolean</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">To call the navigate() function to replace the current entry in window.history, set to true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">useHref</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">
              <p style="margin-bottom:0;">true or false (Default: false)</p>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">boolean</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">To wrap with an anchor tag, set to true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">openTargetIn</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">
              <p style="margin-bottom:0;">newTab, currentTab</p>
            </td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Specifies whether to open the target in a new tab or the current tab.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">url</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Read-only property that displays the value of the generated url when <code>useHref</code> is set to true.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Attribute" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e73 ">
              <p style="margin-bottom:0;">pageReference</p>
            </td>

            <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e79 ">&nbsp;</td>

            <td data-label="Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e85 ">
              <p style="margin-bottom:0;">string</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e91 ">&nbsp;</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e97 ">
              <p style="margin-bottom:0;">Read-only property that gets the generated page reference object for the given properties.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Example c-navigate-action Component

The `navigate-action` component renders a single template, and is designed to attach functionality onto the slotted markup.

```
<c-navigate-action
  target-type="{string}"
  target-name="{string}"
  target-id="{string}"
  target-params="{string}"
  target-action="{string}"
  replace
  use-href
>
  <!-- content -->
</c-navigate-action>
```

## Configure c-navigate-action to Navigate to a Salesforce Tab

Navigate to any app tab or Lightning page by setting _target-type_ to 'navigation item', and target-name (found in the url when viewing the app tab or page, such as _/n/namespace\_\_Target\_Name_).

Note`namespace` must be replaced with actual the namespace in your org.

```
<c-navigation-action target-type="Navigation Item"
    target-name="namespace__LWC_Designer">
    <!-- pass in desired content -->
</c-navigate-action>
```

## Configure c-navigate-action to Navigate to a Component

Navigate to an aura component by specifying the _target-type="Component"_ and _target-name_ attributes where the aura components name is the value of _target-name_.

Currently Lightning web components must be wrapped in an aura component that implements the lightning:isUrlAddressable interface.

```
<c-navigate-action
  target-type="Component"
  target-name="c__example_aura_wrapper"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Configuring c-navigate-action to navigate to update the current page reference

To update the `CurrentPageReference.state`, use a navigation action that excludes the _target-type_ attribute. Values passed in _target-params_ are added to the current state.

```
<c-navigate-action target-params="c__paramone=value one&c__layout=newport">
  <!-- pass in desired content -->
</c-navigate-action>
```

To remove parameters from the `CurrentPageReference.state`, set the param to an empty value. In the following example, executing the navigation removes the view parameter from the PageReference.state.

```
<c-navigate-action target-params="c__paramone=">
  <!-- pass in desired content -->
</c-navigate-action>
```

## Configuring c-navigate-action to Navigate to a Record

Navigate to an action by setting _target-type_ to 'record', a _target-id_, and a _target-action_ (clone, edit, or view). By default the _target-action_value is 'view'.

```
<c-navigate-action
  target-type="Record"
  target-name="Account"
  target-id="001B000000vYIINIA4"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Open the Default Salesforce Edit Dialogue

```
<c-navigate-action
  target-type="Record"
  target-name="Account"
  target-action="edit"
  target-id="001B000000vYIINIA4"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Available Methods

NavigationAction.navigate()

Performs navigation to the PageReference that is constructed via the passed attributes. Calls `NavigationMixin.Navigate()`. The generated pageReference is returned.

NavigateAction.generateUrl()

Returns a promise that resolves the value of the configured PageReference URL and updates the tracked property `url`. This method is called on `connectedCallback`. Note, if `useHref` is set to true and properties are updated after component initialization, generateUrl must be called manually.

## Vlocity Insurance and Health Winter '20 and Vlocity CME Spring '20

The _NavigateAction Lightning Web Component_ enables navigation to any of Salesforce's [PageReference](https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_page_reference_type) types, by leveraging Salesforce's [navigation service](https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_navigate).

## Properties

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e635">
              <p style="margin-bottom:0;">Name</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e641">
              <p style="margin-bottom:0;">Scope</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e647">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">targetType</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} The name of the target PageReference type. One of - component, knowledgeArticle, object, record, relationship, tab, web - Pass undefined for the current PageReference.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">targetId</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - The 18 character record ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">targetName</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - Name of the component, object, tab or record.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">targetParams</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - State params sent to the target page reference.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">targetAction</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - Action passed to object, and record references.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">targetArticleType</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - The articleType API name of the Knowledge Article record. In Communities, articleType is ignored.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">targetRelationship</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - The relationship name of the record.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">replace</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{boolean} - When replace is true, calling the navigate() will replace the current entry in window.history.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">useHref</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{boolean} - If true, wrap the slot with an anchor tag.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">openTargetIn</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - To open the target in newTab/currentTab.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">url</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">track (private)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{string} - When useHref is true, the value of the generated url.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e635 ">
              <p style="margin-bottom:0;">pageReference</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e641 ">
              <p style="margin-bottom:0;">private get</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e647 ">
              <p style="margin-bottom:0;">{PageReference} - The generated page reference object for the given properties.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Methods

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e933">
              <p style="margin-bottom:0;">Signature</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e939">
              <p style="margin-bottom:0;">Scope</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e945">
              <p style="margin-bottom:0;">Return Value</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d337561e951">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Signature" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e933 ">
              <p style="margin-bottom:0;">navigate</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e939 ">
              <p style="margin-bottom:0;">public</p>
            </td>

            <td data-label="Return Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e945 ">
              <p style="margin-bottom:0;">PageReference</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e951 ">
              <p style="margin-bottom:0;">Calls <code>lightning/navigation NavigationMixin.navigate()</code> with the configured attributes.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Signature" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e933 ">
              <p style="margin-bottom:0;">generateUrl</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e939 ">
              <p style="margin-bottom:0;">public</p>
            </td>

            <td data-label="Return Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e945 ">
              <p style="margin-bottom:0;">Promise</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d337561e951 ">
              <p style="margin-bottom:0;">Generates a url value based on the configured attributes.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Markup

The `navigate-action` component renders a single template, and is designed to attach functionality onto the slotted markup.

## Usage

```
<c-navigate-action
  target-type="{string}"
  target-name="{string}"
  target-id="{string}"
  target-params="{string}"
  target-action="{string}"
  replace
  use-href
>
  <!-- content -->
</c-navigate-action>
```

## Example Usage

## Configure c-navigate-action to Navigate to a Salesforce Tab

Navigate to any app tab or Lightning page by setting _target-type_ to 'navigation item', and target-name (found in the url when viewing the app tab or page _/n/namespace\_\_Target\_Name_).

Note`namespace` must be replaced with actual the namespace in your org.

```
<c-navigation-action target-type="Navigation Item"
    target-name="namespace__LWC_Designer">
    <!-- pass in desired content -->
</c-navigate-action>
```

## Configure c-navigate-action to Navigate to a Component

Navigate to an aura component by specifying the _target-type="Component"_ and _target-name_ attributes where the aura components name is the value of _target-name_.

Currently Lightning web components must be wrapped in an aura component that implements the lightning:isUrlAddressable interface.

```
<c-navigate-action
  target-type="Component"
  target-name="c__example_aura_wrapper"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Configuring c-navigate-action to navigate to update the current page reference

To update the `CurrentPageReference.state`, use a navigation action that excludes the _target-type_ attribute. Values passed in _target-params_ are added to the current state.

```
<c-navigate-action target-params="c__paramone=value one&c__layout=newport">
  <!-- pass in desired content -->
</c-navigate-action>
```

To remove parameters from the `CurrentPageReference.state`, set the param to an empty value. In the following example, executing the navigation removes the view parameter from the PageReference.state.

```
<c-navigate-action target-params="c__paramone=">
  <!-- pass in desired content -->
</c-navigate-action>
```

## Configuring c-navigate-action to Navigate to a Record

Navigate to an action by setting _target-type_ to 'record', a _target-id_, and a _target-action_ (clone, edit, or view). By default the _target-action_ value is 'view'.

```
<c-navigate-action
  target-type="Record"
  target-name="Account"
  target-id="001B000000vYIINIA4"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Open the Default Salesforce Edit Dialogue

```
<c-navigate-action
  target-type="Record"
  target-name="Account"
  target-action="edit"
  target-id="001B000000vYIINIA4"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Available Methods

NavigationAction.navigate()

Performs navigation to the PageReference that is constructed via the passed attributes. NavigationMixin.Navigate() is called, and the generated pageReference is returned.

NavigateAction.generateUrl()

Returns a promise that resolves the value of the configured PageReference URL and updates the tracked property `url`. This method is called on `connectedCallback`. Note, if `use-href` is set to true and properties are updated after component initialization, generateUrl must be called manually.

## Vlocity Insurance and Health Summer '19 and Vlocity CME Fall '19

The _NavigateAction Lightning Web Component_ enables navigation to any of Salesforce’s [PageReference](https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_page_reference_type) types, by leveraging Salesforce’s [navigation service](https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.use_navigate).

## Properties

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d337561e1224">
              <p style="margin-bottom:0;">Name</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d337561e1230">
              <p style="margin-bottom:0;">Scope</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d337561e1236">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">targetType</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} The name of the target PageReference type. One of - component, knowledgeArticle, object, record, relationship, tab, web - Pass undefined for the current PageReference.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">targetId</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - The 18 character record ID.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">targetName</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - Name of the component, object, tab or record.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">targetParams</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - State params sent to the target page reference.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">targetAction</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - Action passed to object, and record references.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">targetArticleType</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - The articleType API name of the Knowledge Article record. In Communities, articleType is ignored.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">targetRelationship</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - The relationship name of the record.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">replace</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{boolean} - When replace is true, calling the navigate() will replace the current entry in window.history.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">useHref</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{boolean} - If true, wrap the slot with an anchor tag.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">openTargetIn</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">api (public)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - To open the target in newTab/currentTab.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">url</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">track (private)</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{string} - When useHref is true, the value of the generated url.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Name" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1224 ">
              <p style="margin-bottom:0;">pageReference</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1230 ">
              <p style="margin-bottom:0;">private get</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1236 ">
              <p style="margin-bottom:0;">{PageReference} - The generated page reference object for the given properties.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Methods

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d337561e1522">
              <p style="margin-bottom:0;">Signature</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d337561e1528">
              <p style="margin-bottom:0;">Scope</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d337561e1534">
              <p style="margin-bottom:0;">Return Value</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" id="d337561e1540">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Signature" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1522 ">
              <p style="margin-bottom:0;">navigate</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1528 ">
              <p style="margin-bottom:0;">public</p>
            </td>

            <td data-label="Return Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1534 ">
              <p style="margin-bottom:0;">PageReference</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1540 ">
              <p style="margin-bottom:0;">Calls`lightning/navigation NavigationMixin.navigate()` with the configured attributes.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Signature" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1522 ">
              <p style="margin-bottom:0;">generateUrl</p>
            </td>

            <td data-label="Scope" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1528 ">
              <p style="margin-bottom:0;">public</p>
            </td>

            <td data-label="Return Value" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1534 ">
              <p style="margin-bottom:0;">Promise</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="text-align:left;vertical-align:top;" headers="d337561e1540 ">
              <p style="margin-bottom:0;">Generates a url value based on the configured attributes.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Markup

The `navigate-action` component renders a single template, and is designed to attach functionality onto the slotted markup.

## Usage

```
<c-navigate-action
  target-type="{string}"
  target-name="{string}"
  target-id="{string}"
  target-params="{string}"
  target-action="{string}"
  replace
  use-href
>
  <!-- content -->
</c-navigate-action>
```

## Example Usage

## Configure c-navigate-action to Navigate to a Salesforce Tab

Navigate to any app tab or Lightning page by setting _target-type_ to \`navigation item', and target-name (found in the url when viewing the app tab or page _/n/namespace_Target\_Name\_\_).

Note`namespace` must be replaced with actual the namespace in your org.

```
<c-navigation-action target-type="Navigation Item"
    target-name="namespace__LWC_Designer">
    <!-- pass in desired content -->
</c-navigate-action>
```

## Configure c-navigate-action to Navigate to a Component

Navigate to an aura component by specifying the_target-type=\`\`Component''_ and _target-name_ attributes where the aura components name is the value of _target-name_.

Currently Lightning web components must be wrapped in an aura component that implements the lightning:isUrlAddressable interface.

```
<c-navigate-action
  target-type="Component"
  target-name="c__example_aura_wrapper"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Configuring c-navigate-action to navigate to update the current page reference

To update the `CurrentPageReference.state`, use a navigation action that excludes the _target-type_ attribute. Values passed in_target-params_ are added to the current state.

```
<c-navigate-action target-params="c__paramone=value one&amp;amp;c__layout=newport">
  <!-- pass in desired content -->
</c-navigate-action>
```

To remove parameters from the `CurrentPageReference.state`, set the param to an empty value. In the following example, executing the navigation removes the view parameter from the PageReference.state.

```
<c-navigate-action target-params="c__paramone=">
  <!-- pass in desired content -->
</c-navigate-action>
```

## Configuring c-navigate-action to Navigate to a Record

Navigate to an action by setting _target-type_ to \`record', a_target-id_, and a _target-action_ (clone, edit, or view). By default the _target-action_ value is \`view'.

```
<c-navigate-action
  target-type="Record"
  target-name="Account"
  target-id="001B000000vYIINIA4"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Open the Default Salesforce Edit Dialogue

```
<c-navigate-action
  target-type="Record"
  target-name="Account"
  target-action="edit"
  target-id="001B000000vYIINIA4"
>
  <!-- pass in desired content -->
</c-navigate-action>
```

## Available Methods

NavigationAction.navigate()

Performs navigation to the PageReference that is constructed via the passed attributes. NavigationMixin.Navigate() is called, and the generated pageReference is returned.

NavigateAction.generateUrl()

Returns a promise that resolves the value of the configured PageReference URL and updates the tracked property `url`. This method is called on `connectedCallback`. Note, if `use-href` is set to true and properties are updated after component initialization, generateUrlmust be called manually.