Power Fx function
GUID — Power Fx function reference
Generate or parse a GUID.
Syntax
powerfx
GUID( [ String ] )
Examples
powerfx
GUID()
→ A unique id
Generates a new random GUID.
powerfx
GUID()
Parses an existing GUID string.
powerfx
GUID("12345678-1234-1234-1234-123456789abc")Common mistakes & gotchas
- Called with no arguments it generates a new random GUID each time — it is volatile like Rand(), so capture it once with Set if the same value needs to be referenced more than once.
- Called with a string it parses/validates that string as a GUID; an invalid GUID-shaped string produces an error, so wrap with IfError when parsing untrusted input.
Related Power Fx functions
From Data conversion