-
Find the static value in the Retrieve request body. You shall get it in the "arguments" node.
-
Select the value, right click and select "Replace with Parameter" -> "Create new parameter".
-
Enter the parameter name.
In the example script below, the "customer_id" static value has been parameterized with the parameter <customerID>:
web_custom_request("RetrieveWithParm", "URL=http://172.16.9.79:5099/api/ServerApi/RetrieveWithParm", "Method=POST", "Resource=0", "RecContentType=application/json", "Referer=", "Snapshot=t68.inf", "Mode=HTTP", "EncType=application/json;charset=UTF-8", "Body={\"header\":[\"2.0\",1,\"psapi4loadrunner_cloud\",\"Psapi4loadrunner_cloud\",\"<gs_SessionID>\"" ",\"<gs_TransactionID>\",\"sqlca\"],\"content\":{\"retrieves\":[{\"properties\":[\"21629E1F-F0B3-4dd4-B425-2729E8BAFA3A\",\"\",\"d_customer_pro\",\"\",false,false,\"\",\"\",1],\"arguments\":[[1,\"customer_id\",0,<customerID>]]}]}}", LAST);