# Transaction groups Schedule (Day)

**URL:** <https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 28, 2023, 8:31pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089 "2023-07-28T20:31:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josue\_Cuadras](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/josue_cuadras/32/59915_2.png) [@Josue\_Cuadras](https://forum.inductiveautomation.com/u/Josue_Cuadras)\
**Post date:** [July 28, 2023, 8:31pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/1 "2023-07-28T20:31:10Z")

</div>

Is there a way to Schedule a transaction group executions day?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 28, 2023, 8:34pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/2 "2023-07-28T20:34:07Z")

</div>

Do you mean,  
"Is there a way to schedule a transaction group execution on a particular day?"  
"Wednesday", for example?

---

<div class="post-metadata">

**Author:** ![Josue\_Cuadras](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/josue_cuadras/32/59915_2.png) [@Josue\_Cuadras](https://forum.inductiveautomation.com/u/Josue_Cuadras)\
**Post date:** [July 28, 2023, 8:41pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/3 "2023-07-28T20:41:53Z")

</div>

Yes on a particular day or a range of days let’s say Monday - Friday.

And if there isn’t a way to do this, I think it should be a feature.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 28, 2023, 8:53pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/4 "2023-07-28T20:53:17Z")

</div>

Not directly within transaction groups; the scheduling pattern there is for a given day.

You could drive your group's execution off a memory tag that is itself controlled by a gateway scheduled script:  
[https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-GatewayScheduledScripts](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-GatewayScheduledScripts)

---

<div class="post-metadata">

**Author:** ![Josue\_Cuadras](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/josue_cuadras/32/59915_2.png) [@Josue\_Cuadras](https://forum.inductiveautomation.com/u/Josue_Cuadras)\
**Post date:** [July 28, 2023, 8:55pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/5 "2023-07-28T20:55:37Z")

</div>

I think this should do the trick, thanks!

---

<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:** [July 28, 2023, 8:59pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/6 "2023-07-28T20:59:55Z")

</div>

{Psst! If you must use a script anyways, consider just implementing the DB operation in your script.}

---

<div class="post-metadata">

**Author:** ![Josue\_Cuadras](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/josue_cuadras/32/59915_2.png) [@Josue\_Cuadras](https://forum.inductiveautomation.com/u/Josue_Cuadras)\
**Post date:** [August 1, 2023, 7:07pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/7 "2023-08-01T19:07:44Z")

</div>

How would you run the transaction group off an script?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 1, 2023, 9:06pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/8 "2023-08-01T21:06:22Z")

</div>

Personally, as this would likely be used in multiple places, I would:

Make two expression tags (These are in a folder called 'Trigger')

- DOW: day of the week (integer): `getDayOfWeek(now())`
- TOD: time of day (string) `dateFormat(now(), 'h:mm:ss a')`  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/9/a9bfec56bb65bb2d687bceadc5a29b2e9dfe2eea.png)

Make a Run-Always Expression Item (my example is called 'enable') with the following expression (example is Monday-Friday, 6AM-2PM:

```auto
{[Test]Trigger/DOW} > 1 &&
{[Test]Trigger/DOW} < 7 &&
timeBetween({[Test]Trigger/TOD}, '6:00:00 AM', '2:00:00 PM')

```

Make it your trigger for the group:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d09a779af71106506cc8bec86ed41d2719f236e8.png)

Only slightly more complex if you are using an additional item to trigger as well as enable.

---

<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:** [August 1, 2023, 9:14pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-schedule-day/77089/9 "2023-08-01T21:14:42Z")

</div>

> [@Josue\_Cuadras](#):
>
> run the transaction group off an script

That's not what I meant. I meant to not **have** a transaction group, just a script that does the operations that a transaction group would do.
