function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yogesh BiyaniYogesh Biyani 

passing case.contactId to lighting flow component

I have a flow that takes a recordId and works well for the Contact lighting page by passing in the {!Record.Id}. How can I use the same flow on the Case lighting page and pass in the Case Contact Id? 
AnudeepAnudeep (Salesforce Developers) 
Hi Yogesh, 

If you want to re use the same flow on different pages, please review the salesforce recommended approach here: https://trailhead.salesforce.com/content/learn/modules/screen_flow_distribution/screen_flow_distribution_everypage
 
Technically, we can create a different flow action for every object, make sure it references the same flow, and add it to the various page layouts. However, it takes a lot of effort

The Lightning utility bar is much better suited to making a single flow available on several pages in an app. It appears as a fixed footer that users can access to open utilities in docked panels. Each utility bar is tied to a specific Lightning app, so its items only appear when the user is in that app

Unsure if this helps but posting this just as a suggestion

Anudeep