cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
peter_c
Helper I
Helper I

GUID function fails to convert to string

Recently the conversion of the value from a GUID function to a string has stopped working. 

 

For example, if you add a Label to a form and set its Text property to: "Text " & GUID(), it now reports the error: "Invalid argument type. Expecting one of the following: Text, Number, Boolean."

1 ACCEPTED SOLUTION

Accepted Solutions
CarlosFigueira
Power Apps
Power Apps

You can use the Text function to convert from the GUID value to a string in this case:

"Text " & Text(GUID())

https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-text 

View solution in original post

2 REPLIES 2
CarlosFigueira
Power Apps
Power Apps

You can use the Text function to convert from the GUID value to a string in this case:

"Text " & Text(GUID())

https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-text 

Thanks Carlos.  This does resolve the issue, however, my main reason for raising it is because it's a breaking change and the documentation also doesn't reflect this change yet (https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-guid).

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,292)