AnsweredAssumed Answered

Generate random number dynamically in response

Question asked by Gangashri.N on Jun 5, 2018
Latest reply on Jun 6, 2018 by Gangashri.N

Hi,

I am creating a virtual service, wherein the requirement is to generate a random number in the response. Say for example, i need the value of "Document number" to generate random 13 digit number which begins with 005 in the response.

Also the "Document number" element is not present in the incoming request.

I tried using regular expression in the response as  DocumentNumber = "^([0][0][5]\d{10})$"

Not sure whether am following the right approach.

 

Greatly appreciate any help.

 

Thanks,

Ganga

Outcomes