web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Other users have issue...
Power Apps
Unanswered

Other users have issues attaching files from OneDrive to Email

(0) ShareShare
ReportReport
Posted on by 14

I have made an app where users can enter data, add attachments, save to SharePoint and send an email.

The email is meant to contain a PDF with the data they've entered and the attachments they've uploaded. 

This is all running and working for me, but when I invited another user to the app, the attachments are not being added to the email.

In order to make the PDF, I have build a Power Flow that makes an HTML file using the concat function, which is then converted to a PDF on OneDrive.

 

The attachments are then uploaded to the same OneDrive folder using a simple Create File flow and the ForAll function in Power Apps.


Then i use a flow to take the files from the OneDrive folder and add them as attachments to the email.

PowerAppsNoob3_3-1709533977055.pngPowerAppsNoob3_4-1709534002827.png


The CreatePDF flow is running fine for the other user and so is the UploadAttachments flow. The files are being created and added to the users OneDrive. 
The email is also being sent, with the correct text and information, but without the attachments. 

PowerAppsNoob3_7-1709534527608.pngPowerAppsNoob3_8-1709534539159.png

 

PowerAppsNoob3_9-1709534787452.png


Since the two other flows are running and creating the files without problem, I don't understand why there is a problem connecting with OneDrive and retrieving the attachments.

Any help is greatly appreciated.

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at

    Hi  @PowerAppsNoob3 ,

    Please switch to classic designer.

    vyetonggumsft_0-1709536482984.png

    Repopulate dynamic content.

    vyetonggumsft_1-1709536760760.png

    Best Regards,

    Sunshine Gu

     

  • PowerAppsNoob3 Profile Picture
    14 on at

    Hello v-yetonggu-msft,

    That doesn't seem to change anything. 

    I built the flows in the classic designer and only took the pictures in the new designer.

    I need the attachments to be added to the same email, not each have their own.

    PowerAppsNoob3_0-1709538491673.png


    It works fine for me, but not for the other user.

  • v-yetonggu-msft Profile Picture
    on at

    Hi @PowerAppsNoob3 ,

    If I understand correctly, do you want to send all attachments in one email?

     

    Best Regards,

    Sunshine Gu

  • PowerAppsNoob3 Profile Picture
    14 on at

    Yes, it's important that all attachments are added to one email. 

    I have managed to make this work, as I've shown on the screencap, but it does not work for the new user I've shared my app with.

  • james1994 Profile Picture
    229 Moderator on at

    Hey @PowerAppsNoob3,

     

    In the flow run history for the other user, is there anything in the output of the AttachmentsArray compose action?

    Would you be able to share the flow run history for the AttachmentsArray and List files in folder action?

  • PowerAppsNoob3 Profile Picture
    14 on at

    Hello james1994,

    I had the user run the flow and it ran "succesfully" as usual, with no attachments added to the email. 

    PowerAppsNoob3_1-1709572171417.png

     


    The List Files In Folder value turned out to have a problem.

    PowerAppsNoob3_4-1709555759033.png

    PowerAppsNoob3_3-1709555487754.png


    This made the entire Get File Content process skip and as such the AttachmentArray had nothing in it.

    The email attachments are "null".

    PowerAppsNoob3_2-1709555452171.png


    Normally the process runs fine:

    PowerAppsNoob3_0-1709572100158.png

     

     

  • james1994 Profile Picture
    229 Moderator on at

    Are the attachments and pdf being saved in your OneDrive then?

     

    From your post, I believe you have 3 flows?

    I'm thinking that your create pdf and upload attachments flow has the run-only user permissions set to use your connections instead of the users connection (saving attachments to your OneDrive), while the send email flow is running on users connection (looking for files in their OneDrive folder, or the other way around).

  • PowerAppsNoob3 Profile Picture
    14 on at

    The attachments and PDF are being saved in the current users OneDrive.

    The new user has no problems with making the files in their OneDrive, which is part of the reason why i am so confused. 2 of my flows are running fine, using their OneDrive, but the third is not.

    I do indeed have 3 flows. One for creating the PDF, another for uploading the attachments, and the last one attaches the attachments to the email and sends it.

  • james1994 Profile Picture
    229 Moderator on at

    In the details page of your Send email flow, can you check what the run-only permissions are? Is it set to "Provided by run-only user" or "Use this connection..."?

    james1994_0-1709619831093.png

    I am suspecting that the flow may be using your connection, so it would be trying to get files in your OneDrive and not the user's.

  • PowerAppsNoob3 Profile Picture
    14 on at

    Hey james1994,

    Thanks for continuing to be a help.

    All 3 apps are set to run-only user.

    PowerAppsNoob3_0-1709621217114.png


    I associated them with the app as well.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard