Power Automate Flow Missing from Model-Driven Power App / Dynamics 365
Power Automate can quickly solve problems, automate tedious tasks, and ensure compliance in procedures. Corterra utilizes Power Automate for an Expense solution to upload employee expenses. This is a simple flow that takes a file and stores it in SharePoint. While a simple solution, it is relied upon by our entire staff for recording expense receipts. Recently, we encountered a problem where our flow was no longer available for some of our team. Read below how we solve this problem!
Problem
In a Model-driven Power App, we have a grid of Expenses. A team member can enter an Expense record then run a flow to upload supporting documentation (receipts). Normally, the screen looks like below, with the Upload Expense File flow available to click.
This worked well for a while until recently some of our team members were no longer seeing the flow. They would see a button to "Login to flow" like the screenshot below.
No matter what someone did, they could not get the flow to show up. Tried clearing browser cache, double checked permissions to "Run flow", logging out, rebooting PC, recreating the flow, making the team member an owner of the flow, etc. but nothing would work. Fortunately, there was one more setting in the browser that affected the availability of the flow.
Solution
The solution to this issue is rather simple. All we had to do was change a browser setting. Power Automate Flows utilize cookies to function. If blocking all cookies/trackers, known as tracking prevention, the browser is preventing storing a cookie that was required to have the Flow button work as expected.
Edge
Go to Settings
Search for "Tracking Prevention"
Switch setting for tracking prevention from Strict to Balanced
Close all browser windows and any instance of Chrome or Edge
Open Edge again
Go to flow.microsoft.com. This will store a cookie that was previously not being stored.
After that opens, go to your model driven app. The flow will be available!
Chrome
Chrome will require similar steps to Edge but has slightly different Settings experience.
Go to Settings > Privacy and Security > Cookies
If "Block all cookies (not recommended)" is enabled, switch to either "Block third-party cookies" or "Allow all cookies"
Close all browser windows and any instance of Chrome or Edge
Open Chrome again
Go to flow.microsoft.com. This will store a cookie that was previously not being stored.
After that opens, go to your model driven app. The flow will be available!