Highlighted
Contributor.
Contributor.
1103 views

How to generate GUID & UUID in LR Script

his the first time I am working capturing GUID. I gone through your forum and tried, was able to generate GUID and when passing the value the appllication throughing 400 error. Can you please help me out. In my script there are lot of UUID, do I need to worry about them.

Actual Request:

web_url("AuditDB.jsp",
"URL=https://XXXXX/server/XXXXX/AuditDB.jsp?KEY=275d7cd6-f885-489f-b554-2b264e369fc4&DOCUMENTGUID=E27297A2-D919-11E7-93FE-A0D3C1068460&BATCHGUID=E27297A0-D919-11E7-93FE-A0D3C1068460&SERVERNAME=XXXXX&SCANOPERATOR=ADMIN&DOCTYPEID=100699&IDENTIFIER=1B01P01&IAPROCESS=FRC",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t35.inf",
"Mode=HTML",
LAST);

Passing value;

lr_guid_gen();
lr_message("%s", lr_eval_string("lrGUID"));

web_url("AuditDB.jsp",
"URL=https://XXXXX/server/XXXXX/AuditDB.jsp?KEY={KEY}&DOCUMENTGUID={lrGUID}&BATCHGUID={BATCHGUID}&SERVERNAME={SERVERNAME}&SCANOPERATOR=ADMIN&DOCTYPEID={DOCTYPEID}&IDENTIFIER={P_CASENUMBER}&IAPROCESS=FRC",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t35.inf",
"Mode=HTML",
LAST);

 

Error:

Action.c(720): Error -26631: HTTP Status-Code=400 (Bad Request) for

0 Likes
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.