1

In Postman, I use {{$randomUUID}} as a parameter, but I need to pass it as string (text) in the request. However, there is no convert function in Postman and I could not found any proper way to convert this generated UUID to string. So, how can I convert it to string in Postman and pass it as string?

I also tried something like "menuId": {{"" + $randomUUID}},, but is does not work.

  • Does anybody else using Postman? –  Oct 06 '21 at 07:27
  • Check if this would help:https://community.postman.com/t/how-to-convert-integer-value-to-string-while-in-pre-request-script/16311 convert the value for randomUUID to string in pre-request and then use it as a the parameter. – Srinath Menon Oct 06 '21 at 07:45

1 Answers1

1
{

"menuId": "{{$randomUUID}}"

}

you just have to enclose it with double quotes

PDHide
  • 18,113
  • 2
  • 31
  • 46