Is there a way I can convert seconds to milliseconds in an Extract Variable Policy?

I am currently using the extract variable policy to get a value out of a response payload. The value is in seconds. I need to convert it to milliseconds for another policy (oauth)... whats the easiest way to multiply a variable by 1000 within Apigee? Or am I going to need a script callout?

Solved Solved
1 3 320
1 ACCEPTED SOLUTION

I think a Script callout is required. :<

View solution in original post

3 REPLIES 3

I think a Script callout is required. :<

That's a bummer. Seems silly not to have some sort of basic arithmetic functionality in policies. Making a script call out every time can't possibly be the most efficient way of doing this.

I agree wholeheartedly.