Workflow - Search Activity

Hello team. I need your expertise here with ARS workflow activities. I would like to pass objects found in the search activity of  the workflow to a custom script. I tried both $Request and $DirObj but no luck. I am not sure whether it is possible or not.

I am trying to perform additional checks and then send email notification to the user found in the search activity. I tried If-Else block but the notification object does not have ability to insert custom token which includes attribute information of the found object. Appreciate your help.. Thanks.

Parents
  • You can use a line like the following example in a script to retrieve the current object found in a Search workflow activity. Search workflow steps act like a For-Each loop if more than one object is found.

    The name of the Search workflow step for the below code snippet is "Find Deprovisioned Accounts".

    # Get the DN values of the next found user from the workflow search activity
    $UserDN = $WorkFlow.FoundObject("Find Deprovisioned Accounts").Get("distinguishedname")

    More information can be found in the Active Roles SDK under the topic "Retrieving data from workflow context".

Reply
  • You can use a line like the following example in a script to retrieve the current object found in a Search workflow activity. Search workflow steps act like a For-Each loop if more than one object is found.

    The name of the Search workflow step for the below code snippet is "Find Deprovisioned Accounts".

    # Get the DN values of the next found user from the workflow search activity
    $UserDN = $WorkFlow.FoundObject("Find Deprovisioned Accounts").Get("distinguishedname")

    More information can be found in the Active Roles SDK under the topic "Retrieving data from workflow context".

Children