---
url: /awesome-lwc-collection/components/openRecordPageFlowAction.md
description: Component to forward to a record page from flow.
---

# Open Record Page Flow Action

Component to forward to a record page from flow.

**Type:** Utility

**Available in:** Flow Screen

![Open Record Page Flow Action](https://svierk.github.io/awesome-lwc-collection/images/openRecordPageFlowAction/screenshot.png)

## Read on Medium

**[How to open a Record Page from Salesforce Flow using LWC](https://javascript.plainenglish.io/how-to-open-a-record-page-from-salesforce-flow-using-lwc-a8a94bc0c9ba)**

## Attributes

| Name      | Type   | Default   | Description                                                      |
| --------- | ------ | --------- | ---------------------------------------------------------------- |
| record-id | string |           | Record Id of the record page to which the action should forward. |
| target    | string | '\_blank' | Open the page in the same '\_self' or in a new tab '\_blank '.   |

## Usage

```html
<c-open-record-page-flow-action record-id={recordId} target="_blank"></c-open-record-page-flow-action>
```

Add the component to a screen element in the Flow Builder and set the record-id input attribute to the Id of the target record. As soon as the screen is displayed, the component navigates to the record page - in the same tab ('\_self') or a new tab ('\_blank') depending on the target attribute.

## Custom Labels

The texts users see are Custom Labels, so they can be translated in Setup with the Translation Workbench. Copy them together with the component.

| Name                             | Value   |
| -------------------------------- | ------- |
| OpenRecordPageFlowAction_Loading | Loading |
