NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Absent Member.
Absent Member.

Capturing the dynamic value from a Jason script response body using web_reg_save_param.

I'm unable to capture the value of the voucherId variable which is present in the Jason script response body.

The encoding type used is application/json; charset=UTF-8, Recording Mode-HTML.
Given below is the web_reg_save_param which I've used in the script.


The following messages are displayed in the Replay Log.

Action.c(35): Warning: The string 'VID' with parameter delimiters is not a parameter.

Action.c(35): HTML parsing not performed for Content-Type "application/json" ("ParseHtmlContentType" Run-Time Setting is "TEXT"). URL="{VID}"

Given below is the response body where the variable can be found(Generation Log).
{"response": {"status":true , "reservation":"{\x5C"advancedPayments\x5C":[],\x5C"arrivalDate\x5C":\x5C"01\x5C\x5C\x5C/12\x5C\x5C\x5C/2010\x5C",\x5C"arrivalTime\x5C":\x5C"12:00\x5C",\x5C"bookingType\x5C":\x5C"NORMAL\x5C",\x5C"changeReasonId\x5C":null,\x5C"departureDate\x5C":\x5C"12\x5C\x5C\x5C/12\x5C\x5C\x5C/2010\x5C",\x5C"voucherId\x5C":353, \x5C"voucherVersion\x5C":0}"}}

Following is part of the response body taken from firebug for the same transaction.

Why can't I capture the voucherId value from the web_reg_save_param I've mentioned in the script?

Thank you,
1 Reply
Absent Member.
Absent Member.

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.