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 Apps / How to reset a GUID() ?
Power Apps
Answered

How to reset a GUID() ?

(0) ShareShare
ReportReport
Posted on by 119

Hello Friend,

 

I'm using GUID() inside my app but I haven't find a method to generate a new GUID,

 

I tried write GUID() inside a TextInput Default and reset() the TextInput with no luck, any ideas?

 

Best,

Categories:
I have the same question (0)
  • amitchandak Profile Picture
    95 on at
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @CaiChicken :

    Firstly,let me explain why you encounted this problem.

    The point is GUID is a volatile function when used without an argument.For example, a label control for which the Text property is set to GUID() won't change while your app is active. Only closing and reopening the app will result in a different value.

    Secondly,please try this solution:

    The point is to store the value of GUID in a variable.

    1\set the apps's OnStart property to:

     

    Set(varvar,GUID()); /*varvar is my custom variable*/

     

    2\add a textinput control(TextInput4😞

    Default:

     

    varvar

     

    3\Add a button:

    OnSelect:

     

    Set(varvar,GUID());Reset(TextInput4)

     

    2.gif

    Best Regards,

    Bof

     

     

  • JWar Profile Picture
    2 on at

    An alternative solution if you are using a Global_Reset variable e.g.:

     

    Set(Global_Reset,true);
    Set(Global_Reset,false);

     

    Then you can use the following formula in the default property of a text input:

     

    If(Global_Reset,"",GUID())

     

    This will call GUID() each time Global_Reset is called

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard