# Where a subflow has been instantiated

**URL:** <https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794>\
**Category:** General\
**Created:** [1 March 2021 10:48 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794 "2021-03-01T10:48:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [1 March 2021 10:48 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/1 "2021-03-01T10:48:57Z")

</div>

Is there a way to find all flows into which a particular subflow has been deployed?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 March 2021 11:38 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/2 "2021-03-01T11:38:31Z")

</div>

If you search (Ctrl+F) for the subflow name it should find the definition and the uses.

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [1 March 2021 12:02 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/3 "2021-03-01T12:02:28Z")

</div>

It should.  
But searching for the sublflow, brings me to the subflow itself. Where could I find where it has been used?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 March 2021 12:10 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/4 "2021-03-01T12:10:17Z")

</div>

Get it's id from the sidebar info tab then search that.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 March 2021 12:38 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/5 "2021-03-01T12:38:10Z")

</div>

This question came up recently on the forum.

As Steve says, the only reliable way to do it today is to search for the 'id' of the subflow.

In the imminent 1.3 release, the info sidebar tree view has a link to show all instances of a given subflow.

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [1 March 2021 13:13 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/6 "2021-03-01T13:13:20Z")

</div>

Yes! Got it. Thanks.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 March 2021 13:34 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/7 "2021-03-01T13:34:08Z")

</div>

I guess searching by name worked for me because all of them have the subflow name in each use.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 March 2021 13:36 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/8 "2021-03-01T13:36:26Z")

</div>

Yes - that is the same conclusion you came to in the previous thread.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 March 2021 13:52 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/9 "2021-03-01T13:52:10Z")

</div>

Well at least I am consistent. Senile decay is useful at times, I can deny everything with a clear conscience.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 March 2021 13:58 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/10 "2021-03-01T13:58:45Z")

</div>

Aargh, it's even worse, it was me that asked the question [last time](https://discourse.nodered.org/t/delete-in-use-subflow-doesnt-warn-and-how-to-find-subflow-uses/39793)!

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [1 March 2021 14:00 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/11 "2021-03-01T14:00:18Z")

</div>

Don't worry... my senile decay is worst than yours as I didn't find your question before posting mine!

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 March 2021 14:21 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/12 "2021-03-01T14:21:23Z")

</div>

> [@fmarzocca](#):
>
> I didn't find your question before posting mine!

What question?

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [1 March 2021 14:22 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/13 "2021-03-01T14:22:57Z")

</div>

[This one.](https://discourse.nodered.org/t/delete-in-use-subflow-doesnt-warn-and-how-to-find-subflow-uses/39793)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 March 2021 14:23 UTC](https://discourse.nodered.org/t/where-a-subflow-has-been-instantiated/41794/14 "2021-03-15T14:23:51Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
