# Run scripts from another script after instalation of firmware 5.0.1

**URL:** <https://community.homey.app/t/run-scripts-from-another-script-after-instalation-of-firmware-5-0-1/44387>\
**Category:** Apps\
**Created:** [March 9, 2021, 7:05pm UTC](https://community.homey.app/t/run-scripts-from-another-script-after-instalation-of-firmware-5-0-1/44387 "2021-03-09T19:05:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tb1962](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tb1962/32/7888_2.png) [@tb1962](https://community.homey.app/u/tb1962)\
**Post date:** [March 9, 2021, 7:05pm UTC](https://community.homey.app/t/run-scripts-from-another-script-after-instalation-of-firmware-5-0-1/44387/1 "2021-03-09T19:05:47Z")

</div>

I just updated Homey to the latest firmware. I came from version 4.2.0. Nearly everything works as expected.  
Only calling a script with params from another script does not work anymore. In the target script the args contains the params from the call but now this is a empty list. When calling a script from a flow everything works correctly.

the syntax i used to use:

Homey.apps.getApp({id:‘com.athom.homeyscript’}).then(homeyScript =\> {  
homeyScript.apiPost(‘script/{script\_name}/run’, [param]);  
})

Does anyone know if something has changed with this respect?

---

<div class="post-metadata">

**Author:** ![tb1962](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tb1962/32/7888_2.png) [@tb1962](https://community.homey.app/u/tb1962)\
**Post date:** [March 9, 2021, 8:18pm UTC](https://community.homey.app/t/run-scripts-from-another-script-after-instalation-of-firmware-5-0-1/44387/2 "2021-03-09T20:18:17Z")

</div>

OK, found the solution by looking into api.js on github. The arguments for calling a script from another script needs now to be in the form **{args: [args]}**

The example on github for calling another scripts is wrong. Thats the old methode. Athom needs to change that

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [March 10, 2021, 4:13pm UTC](https://community.homey.app/t/run-scripts-from-another-script-after-instalation-of-firmware-5-0-1/44387/3 "2021-03-10T16:13:40Z")

</div>

> [@tb1962](#):
>
> Athom needs to change that

Better tell them directly [support@athom.com](mailto:support@athom.com)
