Build resource environment switching for published apps

Live on Cloud β€’ Team β€’ Business β€’ Enterprise | Public Beta

Organizations on paid plans can prompt the app building agent to use resource environments in published apps. Resource environments enable you to run a function against different configurations of the same resource, such as staging and production, and were previously only available in Edit mode for apps.

:information_source: Note
Published apps do not include an environment toggle by default.

Optionally, prompt the agent to add a UI element that allows app users to switch between resource environments.

Sample prompts
"When the user is not in the Finance Admin group, use the staging resource environment."


"I want to use this app across resource environments. Add a dropdown in the top right corner."

In addition, you can use the _environment URL query parameter to open an app in a different environment, such as ?_environment=staging. This URL parameter works automatically and does not require prompting.

Reviving this thread because I found a quick workaround that works nicely alongside custom dropdown menus. You can actually pass the environment directly in the link by adding the _environment query parameter to your app URL, like ?_environment=staging. It makes testing different data sources so much faster for my team. Has anyone tried tying this to specific user permissions yet?