JSONata for random strings

Generate a string with 16 random uppercase characters:

Copy
$join([0..16].$substring('ABCDEFGHIJKLMNOPQRSTUVWXYZ', $floor($random() * 27),1))

Result: YAQCCNIDQUWLKFJWI

Properties of a change node, with the msg.payload set to the value the script described above.

Tip: Many nodes in OL Connect Automate accept JSONata expressions. For sample expressions, see JSONata expression samples