# Dynamically create transaction groups

**URL:** <https://forum.inductiveautomation.com/t/dynamically-create-transaction-groups/28133>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [September 10, 2019, 2:09pm UTC](https://forum.inductiveautomation.com/t/dynamically-create-transaction-groups/28133 "2019-09-10T14:09:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyrel.parker](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tyrel.parker](https://forum.inductiveautomation.com/u/tyrel.parker)\
**Post date:** [September 10, 2019, 2:09pm UTC](https://forum.inductiveautomation.com/t/dynamically-create-transaction-groups/28133/1 "2019-09-10T14:09:59Z")

</div>

I have a project that I am using at multiple sites and I made it so that once the backend gets built and the location of the PLC tag location is recorded within the project, then the project builds the associated UDTs. I need to also build some associated transaction groups, but I can’t find a way to do this. Does this kind of functionality exist?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [September 10, 2019, 2:13pm UTC](https://forum.inductiveautomation.com/t/dynamically-create-transaction-groups/28133/2 "2019-09-10T14:13:39Z")

</div>

> [@Dynamic Transaction Groups](http://forum.inductiveautomation.com/t/dynamic-transaction-groups/20489):
>
> We have assets that I have transaction groups for but we have many assets that may be created suddenly, removed suddenly, etc. It wouldn’t be feasible to accommodate these by adding or removing transaction groups manually. Is there a way to dynamically create transaction groups? For example, by checking a bit to see if it exists?

This probably will not completely answer your question, but some information none the less.  
**EDIT**  
[Dynamically-Driven Transaction Groups In SQL Bridge?](http://forum.inductiveautomation.com/t/dynamically-driven-transaction-groups-in-sql-bridge/22047)  
This has more answers than the first one.

---

<div class="post-metadata">

**Author:** ![tyrel.parker](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tyrel.parker](https://forum.inductiveautomation.com/u/tyrel.parker)\
**Post date:** [September 10, 2019, 2:23pm UTC](https://forum.inductiveautomation.com/t/dynamically-create-transaction-groups/28133/3 "2019-09-10T14:23:08Z")

</div>

Thank you. That’s interesting that those didn’t come up for me when I tried searching the forums for this.

---

<div class="post-metadata">

**Author:** ![tyrel.parker](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tyrel.parker](https://forum.inductiveautomation.com/u/tyrel.parker)\
**Post date:** [September 14, 2019, 5:17pm UTC](https://forum.inductiveautomation.com/t/dynamically-create-transaction-groups/28133/4 "2019-09-14T17:17:54Z")

</div>

I was able to create a template and import the file in as a new transaction group using system.groups.loadFromFile, but the names aren’t coming through properly. The names in the xml shows:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/161f6e65798059112aafcc276ef7b02263a14739.png)

but then the transaction group names end up being:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b42bf5579fbe4c5b3430ec4909d1c302f89c1dc4.png)

Does anyone know why and what I am doing wrong? Thank you.
