- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 09:44 AM
I need to create an email notification that will be send every 2 hours that the critical incident is not resolved, closed or completed.
I tried achieving this as the screenshot bellow:
If is checking if incident state is not not resolved, closed or completed.
For some reason the if always returns true, even when I change the state of the incident do resolved.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 10:00 AM
When ever all your logic is negative you have to do and instead of OR. For example lets say the state is canceled with an or the first part of if would return true and not check the rest of if statement.
Also you logic is a little flawed. Instead of start off with an if I would use Do Until otherwise you flow will run once and then stop.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 09:51 AM
@Vinicius2 Instead of checking the state of Trigger record on step 6, you should add a Lookup Record step after step number 5 and fetch the incident record again, in your step 6 you should change the until action to make it wait till the state of incident (fetched in previous step) changes to Resolved.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 10:08 AM
Hello Sandeep,
The main problem, is that for some reason the if it's returning true, even tho the incident is resolved.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 10:14 AM
@Vinicius2 Did you apply a condition on the Lookup Record? ideally it should have a condition sys_id is Trigger.sys_id

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 10:00 AM
When ever all your logic is negative you have to do and instead of OR. For example lets say the state is canceled with an or the first part of if would return true and not check the rest of if statement.
Also you logic is a little flawed. Instead of start off with an if I would use Do Until otherwise you flow will run once and then stop.