Highlighted
New Member.
153 views

correlating the server response including session id

Hello,

I am new to vugen and having hard time to implement manual correlation. I would like to correlate the value 00DA0000000ZVx5!ARMAQDCWm29OvI7p4tk7u.6AFxRemyZ from the below server response I am getting.

sforce.connection.sessionId = "00DA0000000ZVx5!ARMAQDCWm29OvI7p4tk7u.6AFxRemyZ
cWYlr1tFVO8KAmaqoTeLw7lns74iBt45UIuIMPvGjxg9KQx4QFZBDA.YPkIzGCuvb";\n
var paramsString = sforce.apex.execute("QuickLinks"

 

I tried using the below but it didnt work.

web_reg_save_param_ex(
"ParamName=sessionId1",
"LB=sforce.connection.sessionId = \"",
"RB=\";\n\r\t\t\tvar paramsString = sforce.apex.execute(\"QuickLinks\"",
LAST);

 

any help would be greatly appreciated. TIA

Tags (1)
0 Likes
2 Replies
Highlighted
Visitor..
Visitor..

Re: correlating the server response including session id

Please try with below code:

web_reg_save_param("sessionId", "LB=sforce.connection.sessionId = \"", "RB=\"", "ORD=1", LAST);

Thanks,

Ramarao.

 

 

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: correlating the server response including session id

Hi Sindhu, 

you can try to use lr_save_param_regexp() function and create another parameter on the base of the older one. In these links you can find more information about that:

https://sumithra-tejavath.blogspot.com/2018/02/capture-substring-from-dynamic-value.html

http://performancetestingonline.blogspot.com/2014/09/find-sub-string-from-captured-value-in.html

Tell me if this can fix the issue, 

Lorenzo

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.