# How to use flow variables with component configuration?

**URL:** <https://forum.knime.com/t/how-to-use-flow-variables-with-component-configuration/86859>\
**Category:** KNIME Analytics Platform\
**Tags:** component, flow-variables\
**Created:** [March 4, 2025, 11:31am UTC](https://forum.knime.com/t/how-to-use-flow-variables-with-component-configuration/86859 "2025-03-04T11:31:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brni](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/c4cdca/32.png) [@brni](https://forum.knime.com/u/brni)\
**Post date:** [March 4, 2025, 11:31am UTC](https://forum.knime.com/t/how-to-use-flow-variables-with-component-configuration/86859/1 "2025-03-04T11:31:35Z")

</div>

Hi,

I have a fairly simple setup: A component with a configuration node.

In some cases, I want to just configure the component using the dialog. That works fine.

![Screenshot 2025-03-04 122840](https://forum-cdn.knime.com/uploads/default/original/3X/f/0/f0f440f362c2cf33e1bd983e9217528902967e84.png)

However in other cases I want to pass a flow variable as the configuration.  
But the option to set the flow variable is greyed out.

![Screenshot 2025-03-04 122851](https://forum-cdn.knime.com/uploads/default/original/3X/3/b/3bef0834a0eb3c3d2e6081f8817d01d2eb2c3cdc.png)

Can this be done somehow?  
Thanks.

---

<div class="post-metadata">

**Author:** ![takbb](https://forum-cdn.knime.com/user_avatar/forum.knime.com/takbb/32/57077_2.png) [@takbb](https://forum.knime.com/u/takbb)\
**Post date:** [March 4, 2025, 2:15pm UTC](https://forum.knime.com/t/how-to-use-flow-variables-with-component-configuration/86859/2 "2025-03-04T14:15:57Z")

</div>

Hi @brni , I think the most likely reason is that you do not have an Integer flow variable created that can be used to configure the component:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/c/1c50c58048089a9583e0cd4ae5a6b95fb1895b97.png)

---

<div class="post-metadata">

**Author:** ![brni](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/c4cdca/32.png) [@brni](https://forum.knime.com/u/brni)\
**Post date:** [March 6, 2025, 9:25am UTC](https://forum.knime.com/t/how-to-use-flow-variables-with-component-configuration/86859/3 "2025-03-06T09:25:38Z")

</div>

Ah, you’re right. My flow variables simply had the wrong types 🤦. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [March 13, 2025, 9:25am UTC](https://forum.knime.com/t/how-to-use-flow-variables-with-component-configuration/86859/4 "2025-03-13T09:25:47Z")

</div>

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