Answered

Unable to obtain fullname of the last user

Hi,

I've written this expression to obtain the name of the last user who have worked on my case :

var Nom="";

var caseUsers=CHelper.getCaseUsers(Me.Case.CaseNumber);

var drnUser = caseUsers[caseUsers.Count-1];

Nom = drnUser.fullName;

Nom;

Unfortunately, it don't work.

When i put traces, i obtain :

drnUser = 4 (the good WFUSER)

Nom = undefined

where am i wrong ?

Thank you for your help.

Best Answer
photo

Dear Philippe,

According your question, we have an article with a similar example to this post. Please check out this at: http://help.bizagi.com/bpmsuite/en/index.html?obtain_and_use_info_of_assignee.htm

Best Regards

photo
0

Dear Philippe,

According your question, we have an article with a similar example to this post. Please check out this at: http://help.bizagi.com/bpmsuite/en/index.html?obtain_and_use_info_of_assignee.htm

Best Regards

photo
0

Hi,

Thank you for your answer but it doesn't work.

I've read the mentionned page but it's excatly what i have done.

photo
0

Hi,

Thank you for your answer but it doesn't work.

I've read the mentionned page but it's excatly what i have done.

photo
0

Hi,

Thank you for your answer but it doesn't work.

I've read the mentionned page but it's excatly what i have done.

photo
0

Dear Philippe,

Please use this: Me.Case.WorkingCredential.FullName;

Note: When used in an expression that is set ON ENTER of an activity the WorkingCredential will return the propierties of the LAST user that was working on the case. Otherwise. the user who is taking the case.

For further information to see all properties: WorkingCredential

Best Regads