# Execute Transaction Group from Script

**URL:** <https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [August 1, 2023, 7:59pm UTC](https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252 "2023-08-01T19:59:00Z")\
**Posts on this page:** 6\
**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:** [August 1, 2023, 7:59pm UTC](https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252/1 "2023-08-01T19:59:00Z")

</div>

Is there a way to execute a transaction group from a script?

---

<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:** [August 1, 2023, 8:03pm UTC](https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252/2 "2023-08-01T20:03:57Z")

</div>

Have a look in the manual.

[https://docs.inductiveautomation.com/display/DOC80/Understanding+Transaction+Groups#UnderstandingTransactionGroups-TriggerandHandshakeSettings](https://docs.inductiveautomation.com/display/DOC80/Understanding+Transaction+Groups#UnderstandingTransactionGroups-TriggerandHandshakeSettings)

Look at the trigger option and see if you can create a binding on the trigger condition to use the same thing that's triggering your script.

Otherwise give us more details on your setup.

---

<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, 8:07pm UTC](https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252/3 "2023-08-01T20:07:05Z")

</div>

Actually I have a memory tag connected to a Gateway Scheduled Script that runs Monday to Friday at 3:58 pm, this scripts activates the tag and there for activates the transaction group, I was just asking if there’s a way to directly execute the transaction group from the script.

Without the need of the trigger.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 1, 2023, 8:17pm UTC](https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252/4 "2023-08-01T20:17:35Z")

</div>

There is no way to directly trigger a transaction group from a script.

However, you could just use a scheduled trigger and have the transaction group configured to execute on the needed schedule.

[Understanding Transaction Groups - Schedule](https://docs.inductiveautomation.com/display/DOC81/Understanding+Transaction+Groups#UnderstandingTransactionGroups-Schedule)

---

<div class="post-metadata">

**Author:** ![carles.centeno](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carles.centeno/32/67402_2.png) [@carles.centeno](https://forum.inductiveautomation.com/u/carles.centeno)\
**Post date:** [August 8, 2023, 8:33pm UTC](https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252/5 "2023-08-08T20:33:58Z")

</div>

Create boolean variable.  
Create transaction group with a trigger linked to this variable.  
When script is executed, use system.tag.write to modify value of this boolean.

---

<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 8, 2023, 9:43pm UTC](https://forum.inductiveautomation.com/t/execute-transaction-group-from-script/77252/6 "2023-08-08T21:43:32Z")

</div>

If you are going to write a script, have it do the entire operation. Skip having the transaction group entirely. Don't screw around with trigger tags--resetting afterwards reliably, without double executions or missed executions, is difficult to get right.
