# Workflow Provisioning completed filter error JSON Expression

**URL:** <https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845>\
**Category:** SHF Discussion and Questions\
**Tags:** access-requests, identity-security-cloud, provisioning\
**Created:** [May 15, 2025, 2:51pm UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845 "2025-05-15T14:51:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![LearningStar](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LearningStar](https://developer.sailpoint.com/discuss/u/LearningStar)\
**Post date:** [May 15, 2025, 2:51pm UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/1 "2025-05-15T14:51:03Z")

</div>

Hi Team,

I am having requirement is to provision one source on completion of another one let suppose if I have source 1 and Source 2, I want to control the provisioning of these sources that Source 2 provisioning should start on completion of Source 1, What I am trying out to achieve, I created one workflow with trigger ‘PROVISIONING COMPLETED’ where I am trying to use below filter but it is not able to trigger workflow can anyone help me to set it up correctly . Do I need to use any more filter here or Is it sufficient for now.

$[?($.sources == “Source 1”)]

---

<div class="post-metadata">

**Author:** ![jesvin90](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jesvin90/32/5301_2.png) [@jesvin90](https://developer.sailpoint.com/discuss/u/jesvin90)\
**Post date:** [May 15, 2025, 3:26pm UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/2 "2025-05-15T15:26:00Z")

</div>

Hi @LearningStar,

You can try using a filter as below :

`$.accountRequests[?(@.provisioningTarget == "Corp AD" && @.provisioningResult == "committed")]`

Modify your source name accordingly.

---

<div class="post-metadata">

**Author:** ![sidharth\_tarlapally](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sidharth_tarlapally/32/26178_2.png) [@sidharth\_tarlapally](https://developer.sailpoint.com/discuss/u/sidharth_tarlapally)\
**Post date:** [May 15, 2025, 6:38pm UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/3 "2025-05-15T18:38:17Z")

</div>

@LearningStar

The filter above should address the primary error you’re encountering. That said, I’m curious to understand how you’re implementing the second provisioning—just out of interest. 🤔

---

<div class="post-metadata">

**Author:** ![LearningStar](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LearningStar](https://developer.sailpoint.com/discuss/u/LearningStar)\
**Post date:** [May 16, 2025, 6:07am UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/4 "2025-05-16T06:07:48Z")

</div>

I will try it and let you know if this works , Thanks for looking into this 🙂

---

<div class="post-metadata">

**Author:** ![LearningStar](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LearningStar](https://developer.sailpoint.com/discuss/u/LearningStar)\
**Post date:** [May 16, 2025, 6:10am UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/5 "2025-05-16T06:10:40Z")

</div>

@sidharth_tarlapally We have to handle Second Provisioning via SDIM but it should be after Entra Provisioning. I believe workflow would be the only option to control the provisioning for these two sources.

---

<div class="post-metadata">

**Author:** ![LearningStar](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LearningStar](https://developer.sailpoint.com/discuss/u/LearningStar)\
**Post date:** [May 16, 2025, 10:44am UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/6 "2025-05-16T10:44:13Z")

</div>

Jesvin , I tried your filter but its not even allowing me to save the workflow, seems to be syntax error, could you please check whether its showing same error when you are trying to save workflow?

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

---

<div class="post-metadata">

**Author:** ![sidharth\_tarlapally](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sidharth_tarlapally/32/26178_2.png) [@sidharth\_tarlapally](https://developer.sailpoint.com/discuss/u/sidharth_tarlapally)\
**Post date:** [May 16, 2025, 12:35pm UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/7 "2025-05-16T12:35:15Z")

</div>

@LearningStar  
Try this  
`$.input.accountRequests[?(@.accountOperation == "Create" && @.provisioningResult== "committed" && @.provisioningTarget == "Active Directory")]`

---

<div class="post-metadata">

**Author:** ![jesvin90](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jesvin90/32/5301_2.png) [@jesvin90](https://developer.sailpoint.com/discuss/u/jesvin90)\
**Post date:** [May 16, 2025, 1:01pm UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/8 "2025-05-16T13:01:57Z")

</div>

Hi @LearningStar,

Looks like your quotes are incorrect. Try copy pasting the filter as it is into your trigger filter.

`$.accountRequests[?(@.provisioningTarget == "Corp AD" && @.provisioningResult == "committed")]`

---

<div class="post-metadata">

**Author:** ![BhanuK1](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@BhanuK1](https://developer.sailpoint.com/discuss/u/BhanuK1)\
**Post date:** [May 16, 2025, 4:20pm UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/9 "2025-05-16T16:20:55Z")

</div>

Hi @LearningStar ,

Try to use the below filter,  
$.accountRequests[?(@.provisioningResult == “committed” && @.provisioningTarget == “SourceName” && @.accountOperation==“Create”)]

Replace with your source name.  
Thank you

---

<div class="post-metadata">

**Author:** ![LearningStar](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@LearningStar](https://developer.sailpoint.com/discuss/u/LearningStar)\
**Post date:** [May 17, 2025, 2:14am UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/10 "2025-05-17T02:14:03Z")

</div>

Hi Everyone,  
This provisioning worked with the provided filter. @jesvin90@BhanuK1 but I got one only challenge here. Provisioning engine is not able to catch the event. Means my workflow worked only in the case or manual request submission but still non responding on case of birthright provisioning.

My use case is to automatically provision access profile after the source 1 provisioning completed. But it’s seems to be non working for such requirement. For manual request submission filter worked successfully.

---

<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 16, 2025, 2:14am UTC](https://developer.sailpoint.com/discuss/t/workflow-provisioning-completed-filter-error-json-expression/128845/11 "2025-07-16T02:14:26Z")

</div>

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