cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Powerapps12345
Helper I
Helper I

Pop-up

Does anyone know how to create a pop-up window in Power apps that depend on a power automate flow?

If I try to save a photo in sharepoint from Power apps with a name that already exist, I want a pop-up window to be shown:

"A file with that name already exist, do you want to continue?" 🙂

2 REPLIES 2
GarethPrisk
Resident Rockstar
Resident Rockstar

This can be accomplished by combining a few approaches. You will want to present the user with a blocking/modal dialog, while the Flow runs and then returns a value.

https://powerapps.microsoft.com/en-us/blog/creating-dialogs-in-powerapps/

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

 

Thankfully, Flows are synchronous when invoked from a canvas app. At a high-level, you will

  1. Create a new Flow from the PowerApp
  2. In the Flow, develop your logic for creating the photo (presumably from canvas app?)
  3. Determine the outcome of the SharePoint action (good, or bad)
  4. Pass back the result (maybe a Boolean [true/false]) to the canvas app
    1. If good, show a positive result and maybe close the dialog
    2. If bad, show a negative result and then prompt user

 

 

@rahulswimmer has a cool write up on elegant notifications for users. BTW https://powerusers.microsoft.com/t5/Building-Power-Apps/Create-Chips-component-using-PowerApps/m-p/7...

@GarethPrisk Thank you for your answer.
I already have a Powerapp and a flow that works. I even have a pop-up, but I can't figure out the formula to put in the pop-up that stop the flow if the same name already exist. 

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,246)