Ramya Ramachandran (RAMYAMALLIKA)
Team Lead
RAMYAMALLIKA Member since 2010 1 post
Posted: July 17, 2017
Last activity: July 20, 2017
Posted: 17 Jul 2017 7:41 EDT
Last activity: 20 Jul 2017 11:42 EDT

Get User Identifier before login

Hi ,

In our project there is a requirement where we need to get the username as a parameter on submission of login page. even if it is failed login we still need to get the user name which needs to be passed for an activity which is called from web-login HTML.We are using Pega 7.2 version and I have tried the below solutions but none helped

1.Tried to pass the user identifier like below while calling activity

pp.putString("UserID",tools.getParamValue("UserIdentifier") )

2.Used the below code in java step of an activity called from web-login

javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest) tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest");

userid = request.getParameter("UserIdentifier");.

3.Tried to document the cookie and get value from cookie in a local property.

Appreciate your help..!!!

***Updated by moderator: Lochan to add Categories***

Security System Administration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.