# Automate Report

**URL:** <https://forum.inductiveautomation.com/t/automate-report/84021>\
**Category:** Ignition\
**Tags:** perspective, scripting, reporting\
**Created:** [January 10, 2024, 7:39am UTC](https://forum.inductiveautomation.com/t/automate-report/84021 "2024-01-10T07:39:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vatsal\_Shah](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@Vatsal\_Shah](https://forum.inductiveautomation.com/u/Vatsal_Shah)\
**Post date:** [January 10, 2024, 7:39am UTC](https://forum.inductiveautomation.com/t/automate-report/84021/1 "2024-01-10T07:39:11Z")

</div>

I want to generate and email a report with script(system.report.netEmail) at 3 oclock.  
how to do it?  
I even want a way for user to change the report generation time.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 10, 2024, 1:12pm UTC](https://forum.inductiveautomation.com/t/automate-report/84021/2 "2024-01-10T13:12:44Z")

</div>

> [@Vatsal\_Shah](#):
>
> at 3 oclock.

Typically, one would use a Gateway Scheduled Event to call your script.

> [@Vatsal\_Shah](#):
>
> I even want a way for user to change the report generation time.

But a scheduled event cannot be set to a different time with a script, so you would need to use a Gateway Timer Event that checks (often) if it is time to run the next report, then call your script. The "next time" would likely be a memory tag or set of memory tags that your user interface can write instructions to. You are pretty much on your own from here.
