# Trigger type identity attribute, with filter two conditions

**URL:** <https://developer.sailpoint.com/discuss/t/trigger-type-identity-attribute-with-filter-two-conditions/191683>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security, aggregation, provisioning, connectors, entitlements\
**Created:** [December 23, 2025, 10:04pm UTC](https://developer.sailpoint.com/discuss/t/trigger-type-identity-attribute-with-filter-two-conditions/191683 "2025-12-23T22:04:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilherme\_sec](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@guilherme\_sec](https://developer.sailpoint.com/discuss/u/guilherme_sec)\
**Post date:** [December 23, 2025, 10:04pm UTC](https://developer.sailpoint.com/discuss/t/trigger-type-identity-attribute-with-filter-two-conditions/191683/1 "2025-12-23T22:04:22Z")

</div>

Hi everyone, I’m trying to create a filter that activates when the cost center is changed OR when two other fields are changed.

In the case of the cost center, the workflow activates automatically; otherwise, the workflow activates when the other two fields are changed.

This my filter but it’s not working  
$.changes[?(@.attribute == ‘costCenter’ || (@.attribute == ‘endDateForTransfer’ && @.attribute == ‘transferinprogress’))]

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

---

<div class="post-metadata">

**Author:** ![amrdodani](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/amrdodani/32/33234_2.png) [@amrdodani](https://developer.sailpoint.com/discuss/u/amrdodani)\
**Post date:** [December 24, 2025, 12:44am UTC](https://developer.sailpoint.com/discuss/t/trigger-type-identity-attribute-with-filter-two-conditions/191683/2 "2025-12-24T00:44:51Z")

</div>

Hi @guilherme_sec — two issue need need to be addressed here :

1. Your filter uses “smart quotes” ( ‘ ’ ). Replace with normal quotes (’ or ").

2. The `&&` part can’t work as written because each element in `changes[]` has only one `attribute`. So `@.attribute` can’t be `endDateForTransfer` **and** `transferinprogress` in the same array item.

Use a filter that checks whether the attributes exist anywhere in the `changes` array:

```auto
$[?(
  ("costCenter" in @.changes[*].attribute) ||
  (("endDateForTransfer" in @.changes[*].attribute) && ("transferinprogress" in @.changes[*].attribute))
)]

```

That will trigger when **costCenter** changes OR when **both** `endDateForTransfer` and `transferinprogress` are present in the same event’s `changes[]`.

---

<div class="post-metadata">

**Author:** ![nhassan](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/nhassan/32/5835_2.png) [@nhassan](https://developer.sailpoint.com/discuss/u/nhassan)\
**Post date:** [December 24, 2025, 10:43am UTC](https://developer.sailpoint.com/discuss/t/trigger-type-identity-attribute-with-filter-two-conditions/191683/3 "2025-12-24T10:43:06Z")

</div>

Hi @guilherme_sec

Try this filter in the trigger and this should definitely work as I have a similar filter setup and is working fine for a workflow (movers access review).

**$[?((“endDateForTransfer” in @.changes[\*]_.attribute && “transferinprogress” in @.changes[\*]_.attribute) || (“costCenter” in @.changes[\*].attribute))]**

Thanks

---

<div class="post-metadata">

**Author:** ![RAKGDS](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/rakgds/32/2795_2.png) [@RAKGDS](https://developer.sailpoint.com/discuss/u/RAKGDS)\
**Post date:** [December 26, 2025, 6:57am UTC](https://developer.sailpoint.com/discuss/t/trigger-type-identity-attribute-with-filter-two-conditions/191683/4 "2025-12-26T06:57:46Z")

</div>

Thank you Noor, this is working fine for me

---

<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 24, 2026, 6:58am UTC](https://developer.sailpoint.com/discuss/t/trigger-type-identity-attribute-with-filter-two-conditions/191683/5 "2026-02-24T06:58:01Z")

</div>

Closed on February 24, 2026, 6:58am UTC

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