Power Automate Desktop has a built-in action called Get random text which you can use to create a GUID-like string.
Steps:
Add the Get random text action:
Random text length: 32 (or any length you prefer)
Text type: Alphanumeric
Output to variable: e.g., %UniqueID%
%UniqueID%
(Optional) Format it to look like a GUID:
You can insert dashes to make it look like: 8-4-4-4-12
8-4-4-4-12
For example, you can:
Use Substring to split parts
Use Set Variable to concatenate with -
-
Example: If you want something simpler, you can just keep it as a 32-character string, which is unique enough for file references.
If you prefer a real GUID format, here’s a PowerShell trick that’s super reliable.
Add Run PowerShell Script action:
[guid]::NewGuid().ToString()
Store the result in a variable, e.g., %UniqueID%
This returns:
7a8b9c12-3456-7890-abcd-ef1234567890
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Telen Wang as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tomac 986 Moderator
stampcoin 699 Super User 2025 Season 2
Riyaz_riz11 577 Super User 2025 Season 2