Datatype for variable extracted using extract variable policy and URI path

Not applicable

Hi

I am trying to extract a variable from URI /test/{id}/user

And in the next step i trying to validate the datatype of ID.The ID is supposed to be a integer.But it seems extract policy using URI gives only string.Can someone please confirm this.

0 4 164
4 REPLIES 4

@VMuralitharan6 Yes once you extract the variable its data type is String in apigee.

URIPath extraction will result in String.Whereas for JSON/XML payload extraction,you can define the type.

Not applicable

Is there a way to extract and specify the datatype?

One way that I can think of is to use parseInt() js function for that extracted variable.