none
sync engine update workflow RRS feed

  • Question

  • An Action workflow is triggered when engine updates last name.   The action workflow checks for a condition which is always returned false. Not sure what I am doing wrong. Please help.  

    MPR - sync engine updates lastname, call the action workflow.

    workflow -If old lastname is equal to professionalname, update new lastname to professional name. If its not equal, dont do anything.

    IIF(Eq([//Target/LastName],[//Target/ProfLastName]),[//Delta/LastName], Null())

    Allow Null is not checked.

    Thanks in advnce.

    Monday, December 19, 2016 9:24 PM

All replies

  • You will only get a delta during an authorization workflow.

    Changes made by the sync engine changes bypass authorization, so can only trigger action workflows.

    If you want to get the old and new values you will need to store a copy of the value on another attribute.

    Tuesday, December 20, 2016 10:19 AM
  • Should I store the copy of the value in the same workflow?
    Tuesday, December 20, 2016 2:04 PM
  •  You need to do something like:

     

    1.       Create a new attribute called OldFirstName and bind it to the User object.

    2.       Add an activity as the last step in your existing workflow that copies LastName to OldLastName

    3.       You may need a new MPR + workflow to populate OldLastName for new users.

     

    Then you will need to populate OldLastName for each of your existing users. The easiest way to do this is one off activity using either sync engine or a temporary MPR + workflow.

    Sync Engine: Flow LastName from Metaverse to OldLastName, sync  then remove the attribute flow.

    Portal: Workflow to copy LastName to OldLastName and MPR so it gets triggered for every user. Then delete/disable when done.

    Tuesday, December 20, 2016 2:15 PM