Hi
Can you maybe elaborate a bit more on exactly what you mean when saying “SharedUser”? Do you need to use the “User ID” from the user which is set out of office? Keep in mind out of office gives the same effect as the delegate option, meaning the original destination remains unchanged.
Vernon
Hi,
Yes. I need to fetch the "User ID" to whom the task item has been forwarded.
You need the following to to show the shared users tasks in your task list.
//to bring back your tasks
oCrit.AddFilterField(SourceCode.Workflow.Client.
WCLogical.And,SourceCode.Workflow.Client.WCField.WorklistItemOwner, "Me",
SourceCode.Workflow.Client.
WCCompare.Equal,SourceCode.Workflow.Client.WCWorklistItemOwner.Me);
//to bring back your shared tasks
oCrit.AddFilterField(SourceCode.Workflow.Client.
WCLogical.And,SourceCode.Workflow.Client.WCField.WorklistItemOwner, "Other",
SourceCode.Workflow.Client.
WCCompare.Equal,SourceCode.Workflow.Client.WCWorklistItemOwner.Other);
From there you can open your tasks and your shared tasks in the same way.
If you open your shared task and you need to know which user the task originally belenged to, you can get that from the AllocatedUser property.
Thanks for your quick reply. it's working fine.
Hi,
The code provide doesn't work, i got the error : Incorrect syntax near ‘)’
Thx for help, if you solved you plz share :)
PS: BP V 4.6.7
Regards,
Jay-Z
Hi JayZ,
Have a look at the following links from our K2 blackpearl Developers Reference.
Hope this helps
Kind Regards
Julia