helloo guyss i need help to have the same value b...
# help
g
helloo guyss i need help to have the same value but in 2 places
wallaby_user_id
inside the same json like this, but the value will be randomize each time it was hit
Copy code
{
  "data": {
    "mobile_no": "628222222",
    "name": "Test User",
    "wallaby_user_id": "{{randomValue type='UUID'}}",
    "zipcode": null
  },
  "status": "OK",
  "wallaby_user_id": "{{randomValue type='UUID'}}"
}
how to achieve that? thankyou in advance 🙇
l
You can
assign
the uuid to a variable and use that in both places:
Copy code
{{#assign 'uuid'}}{{randomValue type='UUID'}}{{/assign}}
Copy code
{
  "data": {
    "mobile_no": "628222222",
    "name": "Test User",
    "wallaby_user_id": "{{uuid}}",
    "zipcode": null
  },
  "status": "OK",
  "wallaby_user_id": "{{uuid}}"
}
g
WHOAAA
thankyouuu Lee!!!!
👍 1