I'm trying to extract the ContactLastName, by filtering out the ContactOwnerId.
First of all, I am extracting the "ContactOwnerId" from Sampler No. 1 through Regular Expression Extractor which is successful.
My RegEx Query is:
"OWNERID":(\d+),
Now, I want the "LastName" by filtering out the "ContactOwnerId" from Sampler No. 2 through the Regular Expression Extractor.
My RegEx Query is:
(?(?"OWNERID":(\d+),==\${GetContactOwnerId})(?"LASTNAME":"(.*?)"))
Note: The both "LastName" & "ContactOwnerId" can be extracted from Sampler No. 1 & 2, but I'm extracting the "ContactOwnerId" first from the Sampler No. 1 and then trying to extract the "LastName" from the Sampler No. 2 by comparing extracted "ContactOwnerId" with the current "ContactOwnerId".
The 2nd Regular Expression Extractor fails to extract, please verify and suggest the proper query.
Thanks