none
Portal MPR, SET Transition, Action Workflow with a Function Evaluator to copy datetime attribute to another datetime attribute RRS feed

  • Question

  • Hi,

    I am trying to copy a datetime attribute to another datetime attribute within the FIM portal using an action workflow and function evaluator.

    e.g. Target [//Target/TargetDate]  

    Conactenate Value

    SourceDate attribute.

    The workflow creates fine but gives an internal error when the set transition occurs.  Can this be done?  Can you suggest a straightforward workaround if not.

    Thanks,

    A.

    Monday, September 5, 2016 2:17 PM

All replies

  • Hi,

    Sadly, the function evaluator does not work with a datetime data type.  You can work around the problem by creating a custom activity that updates the TargetDate attribute.  Do not be discouraged, there are two references that, if you walk through them, will give you the skills needed to create the activity.

    1. MSDN Walkthrough on creating a custom activity.  The reason I point you to this article is it shows you the steps, from ground zero of creating the project, adding the references, using the gacutil once the DLL is compiled, and installing the activity for use in the Portal.

    2. Ross Currie's "Update Resource Activity Example".

    Best,

    Jeff Ingalls

    Friday, September 9, 2016 12:04 AM
  • Hi

    If you store the return value in a workflowData value you can use the convert date time format in the function evaluator to write it to a other attribute.

    Friday, September 9, 2016 10:35 AM