web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to use GUID functi...
Power Automate
Suggested Answer

how to use GUID function in PAD

(0) ShareShare
ReportReport
Posted on by 5
hello all,

as per my project requirements, i will have to use GUID function to generate a unique reference no for each API call which make to upload a file.

So, can any one please help me on how to use the same in PAD?

Thank you
I have the same question (0)
  • Suggested answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at
     
    Power Automate Desktop (PAD) does not have a built-in action called "Generate GUID". But you can generate GUID using Run Powershell script action as shown in below image
     
     
    Regards,
    Vishnu Reddy
  • Suggested answer
    Riyaz_riz11 Profile Picture
    4,191 Super User 2026 Season 1 on at
    Hi,

    Solution 1: Use “Get Random Text” Action

    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%

     (Optional) Format it to look like a GUID:

    • You can insert dashes to make it look like: 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.

    Solution 2: Use “Get Environment Variable” with a .NET GUID

    If you prefer a real GUID format, here’s a PowerShell trick that’s super reliable.

    Steps:

     Add Run PowerShell Script action:

    [guid]::NewGuid().ToString()
     

     Store the result in a variable, e.g., %UniqueID%

     This returns:

    7a8b9c12-3456-7890-abcd-ef1234567890
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

     

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard