# Workflow Trigger Filter

**URL:** <https://developer.sailpoint.com/discuss/t/workflow-trigger-filter/58115>\
**Category:** SHF Discussion and Questions\
**Tags:** workflows, identity-security-cloud\
**Created:** [May 28, 2024, 8:03am UTC](https://developer.sailpoint.com/discuss/t/workflow-trigger-filter/58115 "2024-05-28T08:03:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandramohans27](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chandramohans27](https://developer.sailpoint.com/discuss/u/chandramohans27)\
**Post date:** [May 28, 2024, 8:03am UTC](https://developer.sailpoint.com/discuss/t/workflow-trigger-filter/58115/1 "2024-05-28T08:03:17Z")

</div>

Hi Experts,

I’m trying to set the filter on the campaign generated trigger, Below is the filter I’m using, But actually its not working and the workflow is getting executed for all the campaign.

I tried both the triggers given below, but its not working :

```auto
$[?($.campaign.name == "Manager Access Campaign")]
$[?($.trigger.campaign.name == "Manager Access Campaign")]

```

```auto
{
  "campaign": {
    "id": "2c91808576f886190176f88cac5a0010",
    "name": "Manager Access Campaign ID",
    "description": "Audit access for all employees.",
    "created": "2021-02-16T03:04:45.815Z",
    "modified": null,
    "deadline": null,
    "type": "MANAGER",
    "campaignOwner": {
      "id": "37f080867702c1910177031320c40n27",
      "displayName": "William Wilson",
      "email": "william.wilson@example.com"
    },
    "status": "STAGED"
  }
}

```

---

<div class="post-metadata">

**Author:** ![ashutosh08](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ashutosh08/32/11459_2.png) [@ashutosh08](https://developer.sailpoint.com/discuss/u/ashutosh08)\
**Post date:** [May 28, 2024, 8:10am UTC](https://developer.sailpoint.com/discuss/t/workflow-trigger-filter/58115/2 "2024-05-28T08:10:09Z")

</div>

Hi @chandramohans27,

Can you try and validate your filter against this API.

> **[test-subscription-filter | SailPoint Developer Community](https://developer.sailpoint.com/docs/api/beta/test-subscription-filter/)**
>
> Validate a Subscription Filter

Thanks

---

<div class="post-metadata">

**Author:** ![chandramohans27](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chandramohans27](https://developer.sailpoint.com/discuss/u/chandramohans27)\
**Post date:** [May 28, 2024, 8:35am UTC](https://developer.sailpoint.com/discuss/t/workflow-trigger-filter/58115/3 "2024-05-28T08:35:55Z")

</div>

Thanks @ashutosh08 It worked.

---

<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:** [July 27, 2024, 8:36am UTC](https://developer.sailpoint.com/discuss/t/workflow-trigger-filter/58115/4 "2024-07-27T08:36:55Z")

</div>

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