経緯
auraコンポーネントというだけで敷居が高く諦めてしまう人が多いため、
auraコンポーネントを理解していなくても、シンプルにコピペだけでフローで使える画面リダイレクトアクションを作成できるように手順をメモとして記載。
完成フロー図
手順
- Salesforceにログインし、適当な画面で[開発者コンソール]を開く。
- [File] -> [New] -> [Lightning Component]を順番に押下。
- Nameに適当な名前を入力し[Submit]ボタンを押下。

<aura:component implements="force:lightningQuickAction, lightning:availableForFlowActions">
<aura:attribute name="recordId" type="String" />
</aura:component>

<design:component>
<design:attribute name="recordId" label="Record ID" />
</design:component>

({ invoke : function(component, event, helper) {
// Get the record ID attribute
var record = component.get("v.recordId");
// Get the Lightning event that opens a record in a new tab
var redirect = $A.get("e.force:navigateToSObject");
// Pass the record ID to the event
redirect.setParams({ "recordId": record });
// Open the record
redirect.fire();
}})

Flow Builderでアクションの配置
完成フロー図のようにアクションを貼り付け以下を設定したらフローで使用できるようになる。

- Flow Builder
- フローの詳細ページまたはリストビュー
- Web タブ
- カスタムボタンとカスタムリンク