Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Toggle switch in PowerApps Portal

Hello Experts,

I have a requirement where I need to create a Toggle switch in PowerApps Portal to trigger a Power Automate flow. I need to save the state of the toggle switch on checking and unchecking. If a user logs into the portal and turns the toggle switch to on state, the status of the switch should be saved until he turns off the switch again. Could anyone please help me on achieving this?

Your help is greatly appreciated..

Thank you

Community Support
Community Support

Hi @PowerappsUser5 ,


The following blog describe how to trigger Microsoft Flow on click of custom ribbon button, I believe it's much helpful and can inspire you. 


Super User
Super User

Hi @PowerappsUser5,


Do you want to trigger flow immediately after user toggles the switch or user will save the record first? If we are talking about second option - just create regular flow that will be triggered on the field update and that's it. First scenario is more complicated - you can trigger your flow from the Portal (see more details here) but regarding saving status might be an issue - you can try to use web form steps or local storage to save it.

If you find this post helpful consider marking it as a solution to help others find it.
Solution Sage
Solution Sage

If you need to save state without saving the form, look into the Web API (preview) that is now available - you can capture on change and then call the Web Api to update (via Ajax) the value in CRM/CDS.


Helpful resources

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


Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,862)