cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TML
Advocate II
Advocate II

Bug when using Format Text on my code?

Hi all,

I'm starting a new project and just doing some very basic startup, but already having issues.  I keyed in the following ONE LINE of code and no errors and it works fine:

Set(gOffcUsr, Office365Users.MyProfile().UserPrincipalName)

I click on "Format text" and it REMOVES "Office365Users." from the code.  It changes the above to the below (every character and space has a red squiggly line under it):

Set(
    gOffcUsr,
    MyProfile().UserPrincipalName
)

and then I get a red X on the control that contains the code that says this:

1.jpg

I know I can let it remain unformatted, but our team has decided on always formatting the code for our projects so that everyone's code is formatted the same.  It took me a while to notice that it was removing the "Office365Users." from the code.  Time wasted down the drain.  The last project I worked on with PowerApps a couple of months ago, did not remove the "Office365Users." when I formatted the code.  Fortunately, it was only one line of code.  If I had had a rather large function, who knows how long it would have taken me to notice it removed code.

 

I really, really want to fall in love with PowerApps - but seems like every time I turn around something silly like this happens and it costs me time to figure out why or come up with a workaround.  Is anyone else seeing this?  This ONE line of code is all that I have added - is this going to happen with all of my code?

1 REPLY 1
v-micsh-msft
Community Support
Community Support

Hi @TML,

 

The symptom confirmed from my side.

We have reported this issue through our channel, and I will update this thread if there are any responses back from the channel.

Best regards,

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (18,101)