cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sts
Frequent Visitor

PowerApps button to trigger Flow doesn't work for users

I've created a simple app in PowerApps and want to have that app trigger a flow when a user clicks on a button in the app (similar to what’s described in this video). When I, the creator of the app and flow, click on the button in PowerApps, it works exactly as intended. However, when other users click on the button, PowerApps throws an error (see attached image PowerAppErrorBar.png). The error seems to be occurring within PowerApps since it doesn’t look like Flow even registers the request (no record shows up in Flow at all). I’ve given full edit access in both PowerApps and Flow to multiple users, but this hasn’t resolved the issue.

 

It seems like the problem might be with the connector in PowerApps. One of users took a screenshot showing that the data source for the connection to Flow was listed as "Not connected" (see attached image "PowerAppsDataSourceNotConnected"). This is not what I see as the creator of the app (see attached image "PowerAppsDataSourceConnected"). The users have accepted the connections that they're prompted with at the start, and I've been able to have users successfully send emails through the PowerApps Office365.SendEmail function, so I'm not sure why a connection is not being established for this particular connector.

 

Any idea why the PowerApps button doesn't trigger the flow for my users? Is there something I need to do to enable the connector for them? I've read numerous forum posts on this topic, but none seem to deal with the problem I'm experiencing. Also, if it's any use, we're on a GCC tenant. 

 

Let me know if there's any other information I can provide.

1 ACCEPTED SOLUTION

Accepted Solutions
sts
Frequent Visitor

After submitting a ticket to Microsoft, it was discovered that this was a bug in GCC and has since been resolved. 

View solution in original post

15 REPLIES 15
Pstork1
Most Valuable Professional
Most Valuable Professional

Here's what I expect is the root of the issue.  When a Flow is invoked by a PowerApps button the Flow runs in the context of the PowerApps user. That means the PowerApps user need permission to the data sources used in Both PowerApps and Flow.  Even if this permission is granted I've seen an issue occasionally where a connector was added in both PowerApps and Flow, then changed in Flow after a user ran it for the first time and accepted the OAuth prompt in PowerApps for the Flow connector.  Changing the connector in Flow gets it out of sync with the one that PowerApps picked up originally when the button was configured.  In that case the best idea is to delete and recreate the button, which will reassociate the modified Flow.  The user should then be prompted again to accept the OAuth permissions.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
sts
Frequent Visitor

Unfortunately, this hasn't resolved my issue.

 

Here are the three different approaches I tried:

1. Deleted the button and recreated it

2. Added new button and new flow starting in PowerApps

3. Created a new flow then tried adding a new button in PowerApps and connecting to the flow

 

Since this didn't work, does anyone have any other suggestions?

When PowerApps and Flow get out of sync it is best to remove the Flow data source from PowerApps and then add it back. It sounds like you might have already tried this and if so what does your Flow look like? Also is your Flow using a premium connector where your user might not have the correct license?



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

I tried this by going to the Flows in PowerApps and choosing "Remove from app" and then adding it back (see attached image). If you meant something else, please let me know.

 

I removed and reapplied two different flows. Both are very simple. One takes a single text input field from PowerApps and sends an email. The other takes the same text input field from PowerApps and adds a SharePoint list item. The user who I'm testing this with has edit permissions to the SharePoint list as well. These flows work exactly as intended when I run the app, but they don't work for anyone I share the app with. 

 

The app does prompt the user to accept the SharePoint connector, but the same "connection not configured for this service" error continues to appear when the user clicks the button that's supposed to trigger the flow.

 

I'm not using any premium connectors in Flow. 

The method you used to remove the data source is what I was referring to. You wouldn't happen to be in a GCC tenant? Have you had the user log into Flow just to make sure there are no issues on that end? Have you tried a simple Flow where there are not connectors in the Flow? If it fails with that type of Flow then you know it has to do with the PowerApps trigger and you may need to submit a support ticket. 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Pstork1
Most Valuable Professional
Most Valuable Professional

You mentioned that you shared the app.  Did you also make sure that the users you shared it with had edit permissions to the SharePoint list behind the App?  



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

To answer your questions:

  • We are in the GCC tenant. Are there known limitations for this type of implementation in a GCC tenant?
  • I've had the user log into Flow to make sure they have access and can run flows. I've even had one user run one of the flows in question in test mode in Flow itself and it has worked, which leads me to believe it has to do with the PowerApps trigger.
  • I did make sure that the users had edit permissions to the SharePoint list as well. 

 

Given that information, do you think it's best to submit a support ticket or is there any other advice you can provide?

 

Thanks!

I heard of related issues with GCC tenants last week but didn't pay much attention since I am not in a GCC tenant. I think at this point it might be worth submitting a ticket.



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks for the heads up. I'll plan to submit a ticket. If there are any resources you're able to direct me to regarding the issues you heard of last week, that'd be aprpeciated, but no worries if it's not something you have immediately available. 

Helpful resources

Announcements

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip: Community User Groups

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: Community User Groups and YOU Being part of, starting, or leading a User Group can have many great benefits for our community members who want to learn, share, and connect with others who are interested in the Microsoft Power Platform and the low-code revolution.   When you are part of a User Group, you discover amazing connections, learn incredible things, and build your skills. Some User Groups work in the virtual space, but many meet in physical locations, meaning you have several options when it comes to building community with people who are learning and growing together!   Some of the benefits of our Community User Groups are: Network with like-minded peers and product experts, and get in front of potential employers and clients.Learn from industry experts and influencers and make your own solutions more successful.Access exclusive community space, resources, tools, and support from Microsoft.Collaborate on projects, share best practices, and empower each other. These are just a few of the reasons why our community members love their User Groups. Don't wait. Get involved with (or maybe even start) a User Group today--just follow the tips below to get started.For current or new User Group leaders, all the information you need is here: User Group Leader Get Started GuideOnce you've kicked off your User Group, find the resources you need:  Community User Group ExperienceHave questions about our Community User Groups? Let us know! We are here to help you!

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!  

Tuesday Tip: Getting Started with Private Messages & Macros

Welcome to TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   This Week's Tip: Private Messaging & Macros in Power Apps Community   Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member!   Our Knowledge Base article about private messaging and macros is the best place to find out more. Check it out today and discover some key tips and tricks when it comes to messages and macros:   Private Messaging: Learn how to enable private messages in your community profile and ensure you’re connected with other community membersMacros Explained: Discover the convenience of macros—prewritten text snippets that save time when posting in forums or sending private messagesCreating Macros: Follow simple steps to create your own macros for efficient communication within the Power Apps CommunityUsage Guide: Understand how to apply macros in posts and private messages, enhancing your interaction with the Community For detailed instructions and more information, visit the full page in your community today:Power Apps: Enabling Private Messaging & How to Use Macros (Power Apps)Power Automate: Enabling Private Messaging & How to Use Macros (Power Automate)  Copilot Studio: Enabling Private Messaging &How to Use Macros (Copilot Studio) Power Pages: Enabling Private Messaging & How to Use Macros (Power Pages)

April 4th Copilot Studio Coffee Chat | Recording Now Available

Did you miss the Copilot Studio Coffee Chat on April 4th? This exciting and informative session with Dewain Robinson and Gary Pretty is now available to watch in our Community Galleries!   This AMA discussed how Copilot Studio is using the conversational AI-powered technology to aid and assist in the building of chatbots. Dewain is a Principal Program Manager with Copilot Studio. Gary is a Principal Program Manager with Copilot Studio and Conversational AI. Both of them had great insights to share with the community and answered some very interesting questions!     As part of our ongoing Coffee Chat AMA series, this engaging session gives the Community the unique opportunity to learn more about the latest Power Platform Copilot plans, where we’ll focus, and gain insight into upcoming features. We’re looking forward to hearing from the community at the next AMA, so hang on to your questions!   Watch the recording in the Gallery today: April 4th Copilot Studio Coffee Chat AMA

Top Solution Authors
Top Kudoed Authors
Users online (3,930)