# Presets: Specifiying multiple Events in one Preset NOT WORKING

**URL:** <https://forum.genieacs.com/t/presets-specifiying-multiple-events-in-one-preset-not-working/4615>\
**Category:** Uncategorized\
**Created:** [October 19, 2023, 12:42pm UTC](https://forum.genieacs.com/t/presets-specifiying-multiple-events-in-one-preset-not-working/4615 "2023-10-19T12:42:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![git-neo-si](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/git-neo-si/32/607_2.png) [@git-neo-si](https://forum.genieacs.com/u/git-neo-si)\
**Post date:** [October 19, 2023, 12:42pm UTC](https://forum.genieacs.com/t/presets-specifiying-multiple-events-in-one-preset-not-working/4615/1 "2023-10-19T12:42:55Z")

</div>

Just realized that you cannot freely combine multiple events to “activate” a provision script via Preset.

You can combine a “negated” event, but not two “random” events. For example, I would like to trigger a same provision script for two events:

- 2 PERIODIC
- 6 CONNECTION REQUEST

Specifying this in Events field of a Preset as “2 PERIODIC, 6 CONNECTION REQUEST”, it results in this Preset NOT getting triggered.

What you CAN do, is for example, negate an event, for example “-2 PERIODIC, 6 CONNECTION REQUEST” and Preset will be triggered when event “6 CONNECTION REQUEST” is received.

Looks like, those are “legit” events:  
“2 PERIODIC”  
“2 PERIODIC,4 VALUE CHANGE”  
“6 CONNECTION REQUEST”

And this is NOT a “legit” event:  
“2 PERIODIC, 6 CONNECTION REQUEST”

But this one is:  
“-2 PERIODIC, 6 CONNECTION REQUEST”

I am still running on 1.2.8, I WAS under impression that in older version this worked… but… I could be wrong… (have currently no older version at hand to re-check).

Any comments?

Is there a way to correctly list multiple events in ONE (1) Preset on which to run a provision script?

Regards,  
Robert.

---

<div class="post-metadata">

**Author:** ![rudymartin](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rudymartin](https://forum.genieacs.com/u/rudymartin)\
**Post date:** [October 19, 2023, 1:46pm UTC](https://forum.genieacs.com/t/presets-specifiying-multiple-events-in-one-preset-not-working/4615/2 "2023-10-19T13:46:42Z")

</div>

I presume it uses an AND operator.

in your first example I have created two presets for the same provision, one with each event.

 ![presets](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/e/e43944b08bf6f0017126a6937e50bb1610b71fcc.png)

unless there’s something I do not know about it, like having redundant presets, it is working for me.

---

<div class="post-metadata">

**Author:** ![git-neo-si](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/git-neo-si/32/607_2.png) [@git-neo-si](https://forum.genieacs.com/u/git-neo-si)\
**Post date:** [October 19, 2023, 2:01pm UTC](https://forum.genieacs.com/t/presets-specifiying-multiple-events-in-one-preset-not-working/4615/3 "2023-10-19T14:01:56Z")

</div>

Yep, this is the work-around, using multiple presets for same script.

But I was asking just in case I was missing something… in case this is not working as intended…

---

<div class="post-metadata">

**Author:** ![git-neo-si](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/git-neo-si/32/607_2.png) [@git-neo-si](https://forum.genieacs.com/u/git-neo-si)\
**Post date:** [October 19, 2023, 4:54pm UTC](https://forum.genieacs.com/t/presets-specifiying-multiple-events-in-one-preset-not-working/4615/4 "2023-10-19T16:54:17Z")

</div>

LOL, finally re-read gitgub docs under [Presets Tab · genieacs/genieacs-gui Wiki · GitHub](https://github.com/genieacs/genieacs-gui/wiki/Presets-Tab).

Here it is:  
If event **names (more than one!)** are specified, **all must be present**. To exclude an event, prepend “_-_” to the event name.

So, it is by design, and NO, you CAN NOT make your own combination of events under **ONE** preset. Exception are “negated” events… 🙂

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [October 20, 2023, 5:28pm UTC](https://forum.genieacs.com/t/presets-specifiying-multiple-events-in-one-preset-not-working/4615/5 "2023-10-20T17:28:13Z")

</div>

> [@rudymartin](#):
>
> I presume it uses an AND operator.

This is exactly how it works. All conditions must be met.
