Unanswered question

Is there a way to convert an extracted variable to different data types?

My AMF response prints the record id as a double (with an exponent), but the subsequent request expects an integer. Is there a way to perform a data type conversion within the variable extractor?

Jeremy J.
Jeremy J.

Jeremy J.

Level
0
6 / 100
points

Answers

There's no option to convert your value from the variable extractor itself. You can still use a Javascript to modify the format of your value.

Have you checked if you have a way to only extract the integer part instead of the whole value?

Also something that could help you, on Flex application, most of the time, you can extract some entire blocks of a response in order to re-use it as it in a subsequent request.

This works even if in the response the type is double and in the request Int. It seems that the server is able to handle that format difference.