Jeff
Jeff

Reputation: 492

Determine current "environment"

Is there a way to detect if I'm looking at a PowerApp in the editor or the published version? Something like If(ENVIRONMENT_EDITOR, foo)

I have some code in my OnStart that sets a bunch of defaults for my development/testing ease, but which should not get published … which I've accidentally done a few times.

Upvotes: 1

Views: 1564

Answers (1)

SeaDude
SeaDude

Reputation: 4365

There is a "way" to do this but you have to be using Solutions https://powerapps.microsoft.com/en-us/blog/environment-variables-available-in-preview/.

Many people in the PowerApps community forums have brought this up. Last I saw it was "Under Review".

Upvotes: 1

Related Questions