cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
peter_c
Level: Powered On

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
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: GUID function fails to convert to string

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
Power Apps Staff CarlosFigueira
Power Apps Staff

Re: GUID function fails to convert to string

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

peter_c
Level: Powered On

Re: GUID function fails to convert to string

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,593)