AnsweredAssumed Answered

How can we perform an increment operation on a variable in CA API Gateway?

Question asked by rhythmarora on May 8, 2018
Latest reply on May 9, 2018 by rhythmarora

I am getting a JSON from CA LAC. In that JSON I have to increment the value of a variable and then send the update to the backend. SO how can I perform an increment operation on a variable?

 

I tried the following approach but it's not working,

* Extract variable from JSON using Evaluate JSON Path Expression Assertion

* Then setting one context variable having value 1

* Then setting another context variable with the expression :

         ${variable1.result} + ${variable2}

 

But it's not working.

Outcomes