This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Active Roles Workflow Search function

Hello im hoping one of you fine people can help me with a dilemma..

I have a workflow where if the user selects a Virtual Attribute say "edsvaCreateADM" it will go and create the Admin Account with all the attributes populated... however, I have put a search function with an If-Else branch to search for existing user objects that might already exist with the same logon ID parameters and if so, it will specify a unique samAccountName. now if there already exists a user object in the test OU.. it works beautifully, however, if the OU is empty, it doesn't create the user.. the event logs basically states that there were no users found and so it doesn't create a new user. 

Question, is there a way to specify in an if-Else condition if a Searched for object returns a null value? I cant find it.. the conditions are only based on a found object.

Parents
  • The Search activity is implemented as a ForEach.

    "For each object that you find, do this thing that many times".

    Because of this, if there are no objects found, any activities which are in the Search activity is skipped - they are not executed.

    To test for this, use an If-Else branch which checks the Execution Status of an activity within the scope of the search. If the Execution Status is Not Executed, then you know that it was skipped because there were no results found by the search.

  • Unfortunately.. as much as I wished it did..  this doesn't work.. when the search result returns 0 it still completes successfully. 

Reply Children
No Data