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

Notifications

Announcements

Community site session details

Community site session details

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

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,656 Super User 2025 Season 2 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
    3,844 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard