In a workflow, create a PSObject to reference in Creation Rules

Is it possible in a workflow to populate a object and then reference the fields in that object in the creation rules?  Each user would have different information so the object would be repopulated for each user being processed.

I have a function that would populate the object based on each user's information from the Source system.

I'd like to then use the information from this object in the creation rules when setting some attributes on the users.  For example, the object may have a logon script that needs to be set.  I'd like to have a creation rule to set the attribute scriptPath to $object.LogonScript

Does that sound possible?  This way I don't have to do a powershell script for each AD attribute's creation rule and not have to query the SQL db a bunch of times.

  • I'm not exactly sure of your use-case from the information provided so far, but it seems like you are looking for a Workflow Parameter.

    You can load a Workflow Parameter using a script, and also reference it or update the value of the parameter within the Workflow using a Modify Requested Changes or Update activity.

    Check in the Active Roles SDK (installed with the product and available in the Windows Start Screen) under the section titled "Retrieving data from workflow context".