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

Workflow - How to set an attribute to the secondary owner's e-mail address of workflow target?

Hi everyone,

Does anyone know how I can set an attribute of my choice, to the e-mail address of the secondary owner of the workflow target? 

So far, I have the following: 

>>Operation execution: Create User; where secondary owner of workflow target is not empty. 

>>Change object properties (attribute of my choice) set to the E-mail address of workflow target

What I am looking to achieve is the following:

>>Operation execution: Create User; where secondary owner of the workflow target is not empty. 

>>Change object properties (attribute of my choice) set to the E-mail address of workflow's secondary owner. 

Can that even be done? 

Thank you! 

  • Hello, Diana.

    My initial reaction would be to believe that this would not be possible without scripting due to the fact that the edsvaSecondaryOwners attribute is multi-valued. If I'm not mistaken, if you attempt to leverage a multi-valued attribute in a place where only a single value is permitted (e.g., e-mail address), I believe that you will receive an error condition.

    With a script, you could, of course, apply logic to select an item from the multi-valued list (e.g., the first item in the list). As far as I know, there is no way to do the same in the Workflow graphical designer.

    Regards,
    Shawn.

  • Diana,

    This does look like it needs to be scripted. 

    When trying to search for an object matching a Secondary Owner's DN, the Workflow fails with the error: "Illegal data entry. Workflow activity encountered data entry of multiple values in a situation where a single-value data entry is required. Check configuration of the workflow activity."

    I could not find a working solution within the Workflow GUI.

  • Thank you Shawn for your response. I will look at a scripted method. 

  • Thank you Terrance! I will see if I can script this.