1
0
-1

I have a collaboration job that assigns multiple anonymous tasks using a delimited array of email addresses saved in a submission extract. For each of those tasks, in subsequent steps in the collaboration job, I want to assign tasks back to the same user.

Is it possible to assign anonymous tasks using the email address of the task assigned in the previous step?
I would imagine this working something like:

 { "name": "Task Assign Email", "value": "${func.previousSubmission().getContactEmailAddress()}"}

 

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      You should be able to access a data extract 'userEmail' from the previous step's submission with this expression:

          $func.previousSubmission().getFormDataMap().userEmail

      1. Chris Reid

        This didn't work. I don't think the userEmail automatically gets populated when a task is assigned to that email address, so I get an 'invalid email address' error when I try to assign the second task.

        I was able to solve this by adding a field into the first form and binding it to the /SystemProfile/Job/Assignee data element, then setting it as a data extract. This made the assignee email address available as a data extract in the config for the second task assign.

      2. Bill Frost

        'userEmail' is just a name I made up, and was meant to indicate you would need to create a data extract of that name.  I should have been more clear in my answer.  Sorry for the confusion, but you seem to have accomplished the task with a data extract now.

      CommentAdd your comment...