satishj5 Member since 2016 11 posts
Bank of America
Posted: 4 years ago
Last activity: 2 years 6 months ago

How to access the querystring parameters outside of authentication activity?

As per our requirement we need to access the queryString parameters in one of our work level activity.

we tried to do this using pxHTTPServletRequest  object. But we are not able to do it, as this object is available only when authentication activity run. for all other requests this object will not be available.

In authentication activity we can use below java code to access the querystring  parameters.

String qString = ((javax.servlet.http.HttpServletRequest) tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest")).getQueryString();

if (qString != null) {

    String[] qsAry = qString.split("&");

        for (int i = 0; i < qsAry.length; i++){

        if (qsAry[i].indexOf("appName") >= 0) {

            myStepPage.putString(".Application", qsAry[i].substring(qsAry[i].indexOf("=") + 1));


        if (qsAry[i].indexOf("sysName") >= 0) {

            myStepPage.putString(".System", qsAry[i].substring(qsAry[i].indexOf("=") + 1));




But as per our requirement we want to use similar code in Work level activity which will run once user login to the system. As pxHTTPServletRequest object will not be available once user login to system, we can't use this same code inside the work level activity.

Is there any way to achieve this requirement ?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Data Integration Security System Administration
Moderation Team has archived post
Share this page LinkedIn