# Transaction groups script

**URL:** <https://forum.inductiveautomation.com/t/transaction-groups-script/17260>\
**Category:** Ignition\
**Created:** [March 7, 2018, 3:44pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-script/17260 "2018-03-07T15:44:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amolinse](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@amolinse](https://forum.inductiveautomation.com/u/amolinse)\
**Post date:** [March 7, 2018, 3:44pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-script/17260/1 "2018-03-07T15:44:06Z")

</div>

Hi!

Does someone know why it is not possible to use the script system.groups in Ignition v 7.9.3?  
I saw this script in Ignition manual, but when I write it on an event I get the following error:  
object has no attribute ‘groups’

Thanks,

Albert

---

<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:** [March 7, 2018, 4:02pm UTC](https://forum.inductiveautomation.com/t/transaction-groups-script/17260/2 "2018-03-07T16:02:24Z")

</div>

Note in the documentation that those functions have Gateway scope only. You won’t be able to use them in any client event or from the designer.

---

<div class="post-metadata">

**Author:** ![amolinse](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@amolinse](https://forum.inductiveautomation.com/u/amolinse)\
**Post date:** [March 8, 2018, 9:15am UTC](https://forum.inductiveautomation.com/t/transaction-groups-script/17260/3 "2018-03-08T09:15:56Z")

</div>

Thanks for your reply. I was a bit confused because I thought that Shared Script Library was placed in the Gateway scope. I have moved my script to a Gateway Event Script and it works fine. Now I just need to find the way to call this script from a button in my project, perhaps by a message or a Tag change. It will not be a very clean solution, but it will work. Do you have any other sugestion?

Thanks a lot!

Albert

---

<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:** [March 8, 2018, 11:32am UTC](https://forum.inductiveautomation.com/t/transaction-groups-script/17260/4 "2018-03-08T11:32:33Z")

</div>

> [@amolinse](#):
>
> I thought that Shared Script Library was placed in the Gateway scope.

No, shared scripts are global across all projects and all scopes (Client, Designer, Gateway).

> [@amolinse](#):
>
> perhaps by a message or a Tag change.

Either would work but I would probably use a message -- much more flexible and provides context on where the request comes from.

---

<div class="post-metadata">

**Author:** ![amolinse](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@amolinse](https://forum.inductiveautomation.com/u/amolinse)\
**Post date:** [March 8, 2018, 11:43am UTC](https://forum.inductiveautomation.com/t/transaction-groups-script/17260/5 "2018-03-08T11:43:10Z")

</div>

ok. Thank you very much!
