I've got an app builded in Power App connected with a flow wich is sending e-mail notifications. The problem with a flow is regarding adding images to an e-mail as attachment. From power app I'm giving a path with a file name - this string is used in flow in connector OneDrive - get file content using a path.
So when I'm using this app and making an action the flow is endig succesful but when different user is making the same action in the app the flow is stoping in this step "Get file content using a path" with error 404 - Item not found. The user has an access to this folder and all files inside.
I think, I've tried everything... I've even gave the user flow owner permissions but it didn't help. Any ideas?
I suppose the problem is with the path but I don't know how to fix it.
Solved! Go to Solution.
Can you please share a screenshot of the flow configuration? Also, is this other user a run-only user or a co-owner of the flow?
I see that you are moving an image from flwo to one drive and then adding as ann attachment, if you do not need the file later on, you might want to directly add that as an attachment based on the content.
Also, please see this article where I have shown passing data from PowerApps (images too) and create files on SharePoint using the JSON function in Canvas Apps.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
"Configuration of the flow" - you mean schema or settings?
I've try with run-only user and with a co-owner - the same issue. The process look's like this:
The attachments content is taken from step before "Get file content using a path" - the path is configured with "Ask in Power apps" - in power apps in the trigger I'm giving this path - it's a path to the folder with images + image file name with extention
Thank you for this article, but whole process is based on one drive and this is onle small part of this project so rebuilding this to SherPoint will be a long and complicated process
the path is for sure correct because when I'm using the app the flow is ending succesful the error occurse only when other users are filling the form. The best thing is that whole process in power apps is working perfect (the form is saved and also the image is saved) but the flow stops in this point.
thank you for explanation. As I said before, the whole app is based on onedrive, so I can't use SharePoint list (meaybe I will change it, if tehre will be more time). So I decided that I till Flow will not have this functionality I will send e-mails without shared images. Only link to the folder and that's all.
Thank you one more time for your help and for your time!
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.