# Json Path filter not working

**URL:** <https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600>\
**Category:** SHF Discussion and Questions\
**Tags:** jsonpath-evaluator, workflows, sailpoint-identity-security\
**Created:** [December 2, 2024, 8:22pm UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600 "2024-12-02T20:22:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![salam1](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@salam1](https://developer.sailpoint.com/discuss/u/salam1)\
**Post date:** [December 2, 2024, 8:22pm UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600/1 "2024-12-02T20:22:19Z")

</div>

Hello,  
I am looking to filter events for trigger “source account created”. Looking to trigger the workflow only when active directory account is created.

I am not sure why this is not working. I tried both json path filter below:  
$[?($.sourceName == “Active Directory”)]  
$[?(@.sourceName == “Active Directory”)]

> **[Triggers - SailPoint Identity Services](https://documentation.sailpoint.com/saas/help/workflows/workflow-triggers.html#source-account-created)**
>
> SailPoint Identity Services Documentation

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/8/a/8a034f3da5c21a447b605575cd246abccf4c5973.png)

Has anyone else faced this?

---

<div class="post-metadata">

**Author:** ![mpotti](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mpotti/32/2916_2.png) [@mpotti](https://developer.sailpoint.com/discuss/u/mpotti)\
**Post date:** [December 2, 2024, 9:05pm UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600/2 "2024-12-02T21:05:49Z")

</div>

you could try something like this.

 ![{C817A7A3-42EE-491E-96A8-4FA90622F497}](https://global.discourse-cdn.com/sailpoint/original/3X/7/3/735cfd4402ab2b5932fc0dedcaf36bc26af4f2c6.png)

---

<div class="post-metadata">

**Author:** ![salam1](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@salam1](https://developer.sailpoint.com/discuss/u/salam1)\
**Post date:** [December 2, 2024, 9:31pm UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600/3 "2024-12-02T21:31:57Z")

</div>

Yes I do have that compare string already however I wanted to add json filter in the trigger itself because it is highly recommended by Sailpoint.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [December 2, 2024, 10:06pm UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600/4 "2024-12-02T22:06:43Z")

</div>

Hi @salam1,  
Can you try our [evaluator tool](https://developer.sailpoint.com/tools/json-path-evaluator)?

---

<div class="post-metadata">

**Author:** ![sagar\_kamalakar](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sagar_kamalakar/32/18893_2.png) [@sagar\_kamalakar](https://developer.sailpoint.com/discuss/u/sagar_kamalakar)\
**Post date:** [December 3, 2024, 1:48am UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600/5 "2024-12-03T01:48:18Z")

</div>

@salam1 I tried below with SailPoint Json path evalautor tool and its working  
Check double quotes

$[?($.sourceName == “Active Directory”)]

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/c/d/cd49a3baad246dd0ac9c1aa672bb0ef07c59c1a6.png)

---

<div class="post-metadata">

**Author:** ![salam1](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@salam1](https://developer.sailpoint.com/discuss/u/salam1)\
**Post date:** [December 3, 2024, 2:29am UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600/6 "2024-12-03T02:29:00Z")

</div>

> [@salam1](#):
>
> [Triggers - SailPoint Identity Services](https://documentation.sailpoint.com/saas/help/workflows/workflow-triggers.html#source-account-created)

thank you very much!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [February 1, 2025, 2:29am UTC](https://developer.sailpoint.com/discuss/t/json-path-filter-not-working/91600/7 "2025-02-01T02:29:16Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
