Power Automate (WDL) function
guid — Power Automate (WDL) function reference
Generate a new GUID.
Syntax
wdl
guid(['format'])
Examples
wdl
guid()
→ A unique id
wdl
guid()
→ e.g. "6f9619ff-8b86-d011-b42d-00c04fc964ff"
'N' produces the dash-free .NET Guid format.
wdl
guid('N')→ e.g. "6f9619ff8b86d011b42d00c04fc964ff"
Common mistakes & gotchas
- guid() takes an optional .NET-style format argument ('N', 'D', 'B', 'P', 'X'); with no argument it defaults to the standard dashed format.
- Each evaluation produces a brand-new GUID — calling guid() twice in the same expression never returns the same value, so capture it once (Compose/variable) if you need to reuse the same id.
Related Workflow Definition Language functions
From Strings