The Task Result variable might be useful for you: http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=001582.html
Create a variable of type Task Result (under the TaskManagerDSC section).
Set this variable on the Output tab of the Assign Task.
One of the Task Result objects is completedBy.
It has several values you can retrieve including email, canonicalName etc. (...assuming the email value is populated in User Manager)
In the SendWithDocument service, on the "To Addresses" tab, set the "To" field to XPath expression.
Now you can xpath to the object in the task result: /process_data/tr/object/completedBy/@email.
Thanks for the quick reply but I am still using version 8.2.1. Yours is more for the ES2 version 9.0 therefore I could not find "Task Result" nor it exists under the TaskManagerDSC section as you specified. Can you please advise on version 8.2.1.
1 person found this helpful
I guess I should have double checked the version with you first!
If I remember correctly, in 8.2.1 there are a few more steps involved.
On the Assign Task service...Form Data Mapping tab, is a field called "Completed user id".
The location to store the GUID (Global Unique Identifier) representing the user who completed the task. The data type is string.
You need to create a string variable to hold that value.
You select that in the "Completed user id" field.
Because this is a GUID, you will then have to do a User Lookup (under Foundation) to find your user.
You can then use those results in the To field of the SendWithDocument.
Hope this helps.