Due to project and requirements, I need to update a Flow that uses a specific LWC. I know the LWC that I need to change but I don't know the flow in which this LWC is used. Project has a lot of Flows and Subflows and it takes a lot of time checking one by one until find LWC.

Is it any way or tool to check in which flow a LWC is being used?

  • 3
    What about retrieval of all flows with sfdx/metadata api and search for screens with LWC in it via VS code/grep/awk or any other tools?
    – kurunve
    Commented Dec 29, 2021 at 15:28
  • 2
    For the daring (and Sandboxes): Try to delete the LWC. You'd be stopped and get a link to the flow. - But don't blame me, if it turns out the LWC had not been used ;-) Commented Dec 29, 2021 at 15:51
  • @FelixvanHove You mean, you don't use source control, just in case? :D
    – sfdcfox
    Commented Dec 30, 2021 at 0:09
  • @kurunve I did this. Thank you!
    – CPS
    Commented Dec 30, 2021 at 8:55

2 Answers 2


Maybe the easiest: Remove the following line from the XML configuration file of your LWC and try to save it to the org:


Salesforce's complain will include references to specific flow versions. Then revert your config.


You should be able to query the MetadataComponentDependency API to determine every Flow that a LWC is used in (as well as any other dependencies).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .