Forum Discussion

vpachpute1's avatar
vpachpute1
Frequent Contributor
8 years ago

To send sub ID from prev response -1

Hi   I have one scenario.   In purchase, I get subscription-id in response. e.g. If my subscripton-id is 78, there is one more sub with id 77 in DB   So I have to pass sub-id as 77 for further ...
  • nmrao's avatar
    8 years ago

    Please see if the below helps.

     

    <subscription-id>${= (${Preconsition - Puchase pAlt#ResponseAsXml}${Preconsition - Puchase #ResponseAsXml#//response[1]/subscription-id[1]} as Integer) -1}</subscription-id>