| | | Forum Newbie
       
Group: Forum Members Last Login: Monday, November 09, 2009 Posts: 4, Visits: 11 |
| | I have a task that I am assigning to multiple users. When each user completes the task, I want to send an email to their boss. The task is named tskReviewDocuments. The users can complete this task with status "Document Reviewed". It is on the output of "Document Reviewed" that I use the Email activity. I have defined a resource variable called ^tskReviewDocumentsRespondingUser. In the body of the Email activity, I include information about the user that just completed tskReviewDocuments using the ^tskReviewDocumentsRespondingUser resource variable. I've found that my implementation works properly 90% of the time. However, the other 10% of the time, when User1 and User2 both complete the task, the boss will receive two emails as expected, but both emails will contain User1's information. The amount of time between User1 and User2 completing the task does not seem to matter. It is as if the ^tskReviewDocumentsRespondingUser is not updated before the Email activity executes. What's going on here? Is there a better way to do this? |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, February 10, 2011 Posts: 28, Visits: 47 |
| | Hi, Cross check if the variable which stores the responded user information has been declared as array type rather than resource. The reason being when a task is assigned to more than one user and if we need to get all the responded users information, then the variable should be of type array. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: Monday, November 09, 2009 Posts: 4, Visits: 11 |
| | I have the responding user variable declared as a resource, not an array. I want to send this email one at a time as each user completes the task. How could I do this if the variable was declared as an array? |
| |
|
|