# Calling Schedule Gateway Script from Button as well

**URL:** <https://forum.inductiveautomation.com/t/calling-schedule-gateway-script-from-button-as-well/73436>\
**Category:** Ignition\
**Tags:** vision, ignition81, scripting\
**Created:** [May 8, 2023, 7:19pm UTC](https://forum.inductiveautomation.com/t/calling-schedule-gateway-script-from-button-as-well/73436 "2023-05-08T19:19:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mandeep\_gill](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mandeep\_gill](https://forum.inductiveautomation.com/u/mandeep_gill)\
**Post date:** [May 8, 2023, 7:19pm UTC](https://forum.inductiveautomation.com/t/calling-schedule-gateway-script-from-button-as-well/73436/1 "2023-05-08T19:19:55Z")

</div>

Hi Team,  
Currently using ignition vision 8.1.17.  
I currently got schedule script which get executed on set time every day. Is it possible to call that script from client using trigger of button?  
Or is there any other way to call gateway schedule script to be trigger based on button if required?

thanks in advanced.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [May 8, 2023, 7:25pm UTC](https://forum.inductiveautomation.com/t/calling-schedule-gateway-script-from-button-as-well/73436/2 "2023-05-08T19:25:55Z")

</div>

You can create a single script that can then be called from either the gateway scheduled script or the button script.

---

<div class="post-metadata">

**Author:** ![mandeep\_gill](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@mandeep\_gill](https://forum.inductiveautomation.com/u/mandeep_gill)\
**Post date:** [May 8, 2023, 9:24pm UTC](https://forum.inductiveautomation.com/t/calling-schedule-gateway-script-from-button-as-well/73436/3 "2023-05-08T21:24:29Z")

</div>

Thanks Kathy for your quick response. Is there any documentation i can refer to create this single script?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [May 8, 2023, 9:28pm UTC](https://forum.inductiveautomation.com/t/calling-schedule-gateway-script-from-button-as-well/73436/4 "2023-05-08T21:28:29Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/Project+Library](https://docs.inductiveautomation.com/display/DOC81/Project+Library)
