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

Utpal Dutta
Tera Guru

Hi there,

Sorry but I'm confused, Is aleart a table? Are events record in alert table?

If yes, then where excatly are you facing issue with flow trigger?

 

Thanks

sundarjm
Tera Contributor

Hi @Shanmukhacharan ,

Please try this,
we can use “When a record is created or updated” on the  table.

Add Condition  (after trigger) like OverallEventCount == 1

For eg : IF "Record Created AND OverallEventCount == 1"
the trigger

But that wouldn't help me with the condition where another event is created for the same alert (overallEventCount changes to 2/3/4...). I am looking for a condition that meets all cases : alert created with one alert, alert updated with more alerts, alert closed with a clear event