# I want to create a workflow that sends an email only when the aggregation of a specific source fails

**URL:** <https://developer.sailpoint.com/discuss/t/i-want-to-create-a-workflow-that-sends-an-email-only-when-the-aggregation-of-a-specific-source-fails/153208>\
**Category:** SHF Discussion and Questions\
**Tags:** identity-security-cloud\
**Created:** [July 7, 2025, 8:14pm UTC](https://developer.sailpoint.com/discuss/t/i-want-to-create-a-workflow-that-sends-an-email-only-when-the-aggregation-of-a-specific-source-fails/153208 "2025-07-07T20:14:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![baoussounda](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/baoussounda/32/13095_2.png) [@baoussounda](https://developer.sailpoint.com/discuss/u/baoussounda)\
**Post date:** [July 7, 2025, 9:31pm UTC](https://developer.sailpoint.com/discuss/t/i-want-to-create-a-workflow-that-sends-an-email-only-when-the-aggregation-of-a-specific-source-fails/153208/3 "2025-07-07T21:31:25Z")

</div>

Hello @AbhijeetPatil

I writte this blog that help [Using IdentityNow Workflows to Send a List of Uncorrelated Accounts After Aggregation - Content / Community Blog - SailPoint Developer Community](https://developer.sailpoint.com/discuss/t/using-identitynow-workflows-to-send-a-list-of-uncorrelated-accounts-after-aggregation/24010)

The usecase was to send a notification after each aggregation.

Also it explain how to filter for specific sources.  
In that trigger I also filter on **Success** aggregation but in your case you have to filter on success like :

```auto
$[?((@.source.name in ["My source 1", "My source 2", "My source 3"]) && (@.status != "Success"))]

```

or

```auto
$[?((@.source.name in ["My source 1", "My source 2", "My source 3"]) && (@.status != "Error"))]

```

Just check the exact name of error status.

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/i-want-to-create-a-workflow-that-sends-an-email-only-when-the-aggregation-of-a-specific-source-fails/153208)._
