Need to trigger a flow only every time a new event is added to the alert

Shanmukhacharan
Giga Contributor

We have a requirement to trigger the flow only when a new event is added to the existing alert.

So, the flow should be triggered when :

- the first event comes in and event gets created

- Any other event comes in which is added to the same alert (Alert updated and overAllEventCount increases)

- Last Clear event comes in and alert is closed

And we don't want the flow to be triggered on any other update to the Alert !

 

We tried using the Trigger: Record created or updated on the alert table, criteria as when OverallEventCount changes. But this didn't work, may be because when the alert is created, the OverallEventCount didn't change (it is 1). 

 

Is there a way to get this working? Please suggest.

 

Thanks in advance

5 REPLIES 5

Simon Christens
Kilo Sage

Hi,

What I think you need to do is _always_ run the flow on inserts and updates.

 

In the flow then check for either insert or update.

The field "Updates" will be 0 on insert

SimonChristens_0-1752726937292.png

else you will need to loop through all the changed fields and check if the event count changes

SimonChristens_1-1752727138982.png

I havent tested this but it should be possible to determine if you should do something or not.