web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Exit() - Close Tab - R...
Power Apps
Answered

Exit() - Close Tab - Redirects to dynamics

(1) ShareShare
ReportReport
Posted on by

The exit function with boolean parameters works fine.

But is there a way where Exit() can close the tab.

Right now it redirects to home.dynamics.com

 

Any ideas?

 

Thanks,

S.

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 

    This feature does not currently exist in PowerApps. 

     

    I would suggest voting for the Idea here https://powerusers.microsoft.com/t5/PowerApps-Ideas/Closing-the-browser-tab-when-form-is-submitted-saved/idi-p/181759

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Do you want to close Browser tab when you execute the Exit() formula?

     

    If you want to close Browser tab when you execute the Exit() formula, I afraid that there is no way to achieve your needs in PowerApps currently.

    The Exit() function is used to exit current running app, the user is returned to the list of apps, where they can select another app to open.

     

    If you would like this feature to be added in PowerApps, please consider submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Best regards,

  • rrranta Profile Picture
    45 on at

    Hey @Anonymous 

     

    I'm dreaming of the same function 🙂

     

    If you every figure it out lmk for old time's sake

  • Test22 Profile Picture
    4 on at

    @Anonymous @mdevaney 

    You can close the canvas app, albeit a different way. I published an article on this, check this out:

    https://hameedhussain.com/2021/03/01/close-canvas-app-using-pcf-button/

  • Maarten_Docter Profile Picture
    6 on at

    A workaround would be to redirect the page to a simple externally hosted HTML file which calls/triggers the window.close() JavaScript method to close the tab. It's easy to create.

    So easy, that I even provide one which you can use in the meantime:

     

     

     

    Launch("https://power-app-close-tab-by-maarten-docter.vercel.app", Blank(), LaunchTarget.Replace)

     

     

     

    The LaunchTarget.Replace will open the URL in the current window, so a redirect will take place. As soon as the URL is loaded, it will close the tab.

  • ron_zw Profile Picture
    39 on at

    Hi @Anonymous 

     

    Exit(false) didn't really work for me. But this work for me.

     

    Launch('https://your.redirect.link", Blank(), LaunchTarget.Replace) 

     

    Regards

     

    Ron

  • GrischkePro Profile Picture
    287 on at

    @Maarten_Docter this doesn't seem to work for me 😞

    While editing the app, the close button opens and closes a new window, but when published, it opens a blank page. I tried your URL and my URL. When I open the URL in a new window, it works. It doesn't work in the same window 😕

    Any ideas?

  • mdocter Profile Picture
    22 on at

    Hi @GrischkePro, I'm on a holiday, so can't test right now. Maybe there was a change in the runtime? Next week, when I'm back online, I'll make a small proof of concept app to validate it's old behavior. Sorry I can't help you sooner.

  • GrischkePro Profile Picture
    287 on at

    @mdocter 

    Hey, did you manage to have a look at this for me?

  • mdocter Profile Picture
    22 on at

    Hi@GrischkePro , I totally forgot. Sorry for that. I still need to create the PoC and make it available for download. I noticed that the app I created it for still works. So it's old behavior should be the same. I hope to find some time this weekend. @

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard