How does BPM obtain the username?
I can obtain the user ID. =callContextClient.CurrentUserId
1 Like
Use this.Session.UserId instead since context client may not always be populated
Interesting, I have not seen this. Can you think of a situation where context client wouldn’t be populated?
ContextClient comes from the client .
Rest calls outside of the Epicor UX don’t always have it. Though maybe the userid copies form session the other fields certainly dont
3 Likes
Error:
Erp.Tables.UserFile UserFile;
UserFile = (from UserFile_Row in Db.UserFile
where UserFile_Row.DcdUserID == Session.UserID
select UserFile_Row).FirstOrDefault();
if(UserFile != null)
{
ttPartClassRow["****"] = UserFile.Name;
}
Yes it does is just spelled wrong… You literally used it in your linq query
1 Like
thanks This issue has been resolved
1 Like