none
Powershell Activity Workflow mapping problem RRS feed

  • Question

  • Hi guys,

    I created a powershell activity workflow and mapped a couple of attributes in the WorkflowData. I can reach them in the powershell activity and this works like a charm.

    Now I want to use this workflow to validate a modified user attribute. When I map attributes with a function evaluator I can't seem to reach the new value (only the old one stored in the FIMPortal), and using //Request doesn't seem to work. Any idea's?

    Thanks!

    Solution:

    - Mapped the old value on the workflowdata

    - Used a regex to get the new value from the [//RequestParameter/AllChangesAuthorizationTable] (used if else to check if this is the only change, if not: remove the others)

    if($authchanges.substring(0,4) -eq 'Rijk') { $new = $authchanges -replace 'RijksKszRegisternummer','' } else { $new = $rijksreg -replace '.+RijksKszRegisternummer','' }

    $RRNr = $new.substring($oldvalue.length,11)

    Probably not the "cleanest" way to do this, but it works..

    • Edited by Vvouterr Thursday, January 24, 2013 9:22 AM
    Friday, January 18, 2013 3:13 PM

All replies