# How to run Homeyscript from an Advanced Flow with Args\[\]

**URL:** <https://community.homey.app/t/how-to-run-homeyscript-from-an-advanced-flow-with-args/107176>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [March 27, 2024, 3:11am UTC](https://community.homey.app/t/how-to-run-homeyscript-from-an-advanced-flow-with-args/107176 "2024-03-27T03:11:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 2, 2024, 4:59am UTC](https://community.homey.app/t/how-to-run-homeyscript-from-an-advanced-flow-with-args/107176/3 "2024-04-02T04:59:19Z")

</div>

> [@Peter\_Bittner](#):
>
> I just need to work out how to run it from an Advanced Flow.

On [my.homey.app](https://my.homey.app), create a new script using the `</>` button in the sidebar:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b0c55987a6308f8b38e1714e0d0caddcbda3bf24.png)

Then you can use it with the “Run script” or “Run script with argument” cards in an advanced flow.

I have no idea what `global.get()/global.set()` have to do with this, but it sounds like you’re misunderstanding their purpose (they can’t be used to get/set _Homey_ variables).

---

_[View the full topic](https://community.homey.app/t/how-to-run-homeyscript-from-an-advanced-flow-with-args/107176)._
