Hi People :)
I am trying to obtain the display name of the person who completes the particular activity. Suppose, my active directory 'A' contains IDs A1, A2, A3 etc. The destination users for a particular activity is set to all the users in the AD Group 'A'. The task is assigned to A1, A2, A3 etc. A2 completes the task first and thus the task expires for the rest of the members in the group.
When A2 completes the task, i want the name of A2 to be displayed. I will display it through a smart object event and a server event. I want to display "Task completed by <Display Name>" i.e. "Task completed by Mike" (A2 = Mike)
I tried out a few things.
1) There is an OOB Smart Object "Users and Groups". This has four list methods. When i use Get_E_mail_For_Group_Users, i can obtain the display name. However, i will have to send the AD Group Name as Group Fully Qualified Name and Domain Name i.e. 'K2'. However, i do not based on what values i can filter for the correct Display Name because there is no Process ID or Activity Name on which i can filter :(
2) The same OOB Smart Object "Users and Groups" has another method i.e. Get_E_mail_For_User. When i pass the Fully Qualified Name of the user, i get the Display name. However, i am unable to implement in code :( I can pass the fully qualified name from the Activity Destination Instance OOB Smart Object filtering based on Activity Name and Process Instance ID.
When i implement in code to obtain the display name from Get_E_mail_For_Group_Users, it is working fine. However, if i implement the same piece of code for Get_E_mail_For_User, i get an error at ExecuteList() method stating, it should be set to a method name instance.
I further checked the XML of the smart object. The methods Get_E_mail_For_Users and Get_E_mail_For_Groups are of type 'read' and the other two methods are of type 'list'. Is there another way to implement the code?
Kindly help me out.
Thank you in advance :)
Sravanthi