Workflow Provisioning completed filter error JSON Expression

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”)]

Hi @LearningStar,

You can try using a filter as below :

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

Modify your source name accordingly.

1 Like

@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. :thinking:

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

@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.

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?

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

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")]

1 Like

Hi @LearningStar ,

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

Replace with your source name.
Thank you

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.

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