I've got a flow which gets called from Power Apps and creates a file in Sharepoint, then emails the link to the created file via the "Send Email from Shared Mailbox V2" action.
This issue sounds identical that detailed here: https://powerusers.microsoft.com/t5/Building-Flows/Shared-Mailbox-Error-Specified-Folder-not-found/m... However, that poster's workaround of giving Send As permission to the user triggering the flow does not work in this case.
I created the Flow, and when I run this as myself, it works without a problem. However, when a secondary user runs the Power App and triggers the flow, the flow succeeds except for the step of sending the email. The error that gets logged is:
"status": 404, "message": "Specified folder not found
After reading the above cited thread, I added Send As permission on the Shared Mailbox to the secondary user, despite the fact that the flow is using my account as the connection. It still won't send and gives the same error.
The user has permission to the Power App and the Sharepoint Library, so that doesn't seem to be contributing. And it still fails even if I view the failed run and Resubmit.
Unfortunately when the flow gets triggered from Power Apps, the flow uses the users connections. Instead of the connections you setup in your flow.
What about using nested flows? so powerapps invokes first flow, this flow invokes a second one via HTTP, which is running with your own credentials
Hope this helps
I was just researching this route, and it makes sense. However the HTTP action is a Premium action. If possible, I'm wanting to avoid going Premium to get around what really looks to be a bug.
For example, clearly the "Send from Shared Mailbox" action behaves as @Jcook describes, since it is triggered via Power App, it is using the Power App user's connection (and despite the secondary user now having Send As permission on the Shared Mailbox, it appears I need to grant them "Full Access" which is not an option here). However, earlier in the flow, the file is initially created in a folder in my OneDrive, then converted to PDF and saved in Sharepoint. The secondary user doesn't have permission to this folder on my OneDrive, but that step still succeeds and the resulting file shows it being created by me, so in that case, it appears the OneDrive file creation action is using the flow's connection. All this with no visual representation of this inconsistency in behavior within the Power Automate UI, which tells me it isn't expected behavior.
I'm testing splitting the email function off to its own flow that is triggered when the file is created in Sharepoint. However, this would be a workaround, not a solution to the underlying problem.
"I'm testing splitting the email function off to its own flow that is triggered when the file is created in Sharepoint. However, this would be a workaround, not a solution to the underlying problem."
Totally agree... both nested flows approach and second flow triggering when a file is created are workarounds. Let's hope somebody else poin us to the right direction. But, at least we have a plan B.
Thanx for sharing!
I just verified, the 2nd flow works.
So flow #1:
Then flow #2:
Fingers crossed for an actual fix. But in the interim, this'll keep us going.
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.
Many congratulations to the Season 1 2021 Flownaut Crew!
ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.