cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TML
Level 8

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
Community Support Team
Community Support Team

Re: Bug when using Format Text on my code?

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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,842)