# Parametrized transaction groups

**URL:** <https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [January 29, 2024, 8:45am UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875 "2024-01-29T08:45:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_G](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jorge\_G](https://forum.inductiveautomation.com/u/Jorge_G)\
**Post date:** [January 29, 2024, 8:45am UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875/1 "2024-01-29T08:45:18Z")

</div>

Hi! I'm currently working on an ignition project where we want to create a trigger for a concrete type of machine in a line. The machine is defined by a parametrized UDT and my question is: Is there any way to create a parametrized transaction group so i can re-use a trigger for multiple machines of a line which are identically the same not having to replicate the same trigger but pointing to different tags? This is a very tedious work and difficults mantainability and failure risk when pointing to a new machine.  
Regards,  
Jorge

---

<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:** [January 29, 2024, 10:50am UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875/2 "2024-01-29T10:50:24Z")

</div>

Not in a transaction group, no.

Consider using a gateway tag change event script to replicate the action.

---

<div class="post-metadata">

**Author:** ![Jorge\_G](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jorge\_G](https://forum.inductiveautomation.com/u/Jorge_G)\
**Post date:** [January 29, 2024, 11:02am UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875/3 "2024-01-29T11:02:48Z")

</div>

As i've read, tag change events are for running scripts, but, the transaction group trigger performs an insert, so, is there any way i can call the trigger and pass to it some arguments (references to tag)?, or you suggest to make data insertion on the script itself and not using transaction group?

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [January 29, 2024, 11:03am UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875/4 "2024-01-29T11:03:49Z")

</div>

> [@Jorge\_G](#):
>
> make data insertion on the script itself

This.

[https://docs.inductiveautomation.com/display/DOC81/system.db](https://docs.inductiveautomation.com/display/DOC81/system.db)

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [January 29, 2024, 11:04am UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875/5 "2024-01-29T11:04:47Z")

</div>

> [@JordanCClark](#):
>
> **gateway** tag change event script

Also, note.

---

<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:** [January 29, 2024, 11:33am UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875/6 "2024-01-29T11:33:40Z")

</div>

> [@Jorge\_G](#):
>
> or you suggest to make data insertion on the script itself and not using transaction group?

This is what I'm suggesting.  
[https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts)  
An example (Apologies, I don't normally post just screenshots of code, but this is for illustrative purposes):

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/6/16ca6ae456301da1bca7e25359e2e7f0a8360a70.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/d/3d8d2889f6c6f2c76e49a58055aa4cb4e30021a2.png)

---

<div class="post-metadata">

**Author:** ![Jorge\_G](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@Jorge\_G](https://forum.inductiveautomation.com/u/Jorge_G)\
**Post date:** [January 29, 2024, 12:32pm UTC](https://forum.inductiveautomation.com/t/parametrized-transaction-groups/84875/7 "2024-01-29T12:32:18Z")

</div>

Nice! Thanks I'll check it, hope it works for me
