%dw 2.0 output application/json --- uuid()
uuid
uuid(): String
Returns a v4 UUID using random numbers as the source.
Example
This example generates a random v4 UUID.
Source
Output
"7cc64d24-f2ad-4d43-8893-fa24a0789a99"
JSON
3.9
1.9
2.x
1.2
This version of the product has entered Extended Support. You can switch to the latest version.
Returns a v4 UUID using random numbers as the source.
This example generates a random v4 UUID.
%dw 2.0 output application/json --- uuid()
"7cc64d24-f2ad-4d43-8893-fa24a0789a99"
JSON