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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HELP - Flow to access ...
Power Automate
Unanswered

HELP - Flow to access onedrive based on user - powerapp generating pdf

(1) ShareShare
ReportReport
Posted on by 39

warning: first app and first time using power automate so go easy on me lol.

 

i have an app which generates a pdf report using flow and exports to onedrive. my problem is it is saving to MY onedrive account and i will have different users obviously with different onedrive accounts generating this report. ideally i would like for the pdf to save to their own onedrive where they can access it and email it as needed. 

 

below is my flow: 

corina_0-1608046742012.pngcorina_1-1608046770836.png

 

the onedrive for business account is linked to mine: 

corina_2-1608046967516.png

 

can somebody please help! there has to be a way to trigger it based on the user's email, right?

Categories:
  • Gopala_Krishna Profile Picture
    1,495 on at

    @corina 

     

    The Power Automate works based on the connection that you create over a particular action card.

    In this case if we consider the OneDrive for Business connector. It is connected with your connection and all the details that come in that action card, be it the point where you select the location in which you want the file to be created or the point where you enter the file name.

     

    All the content is saved once you hit on save, and whoever user trigger the flow the action is performed only by using your email address, thus by indicating to the system that it is you who is performing the action, but in reality it has been triggered by some other user.

     

    In order to overcome this conflicting scenario, I request you to use the SharePoint connector for creating the flow and that to using the action SEND HTTP REQUEST TO SHAREPOINT where it will allow you to send HTTP request to SharePoint. This scenario of using HTTP request for creating the file will help you with the desired scenario.

     

    If the information shared helps, please consider giving a thumbs up 👍 and mark solution as resolved

  • corina Profile Picture
    39 on at

    thanks for your reply! do you know if there is any kind of action/trigger similar to the below example which defines the user? or even if that get user profile can be used with onedrive? (i guess i should test it out huh lol)

    corina_0-1608049253487.png

     

  • Gopala_Krishna Profile Picture
    1,495 on at

    @corina 

    You can also use the azure AD connector to get the user details.

    The Azure AD connector also has the same action card Get User to fetch the user details.

     

    You can use it in the Onedrive, but that doesn't help in achieving the result that you want where you wanted to create file based on the user who is triggering the flow.

     

    One thing you can do is you can add a column during file creation that add's the user details in the column. which helps in identifying who is creating the file.

     

    If the information shared helps in resolution, please consider giving a thumbs up 👍 and mark solution as resolved.

  • corina Profile Picture
    39 on at

    thank you! i will try that. and i think i was unclear, i do not want a file created based on the user. i just want a file created and put into either their individual onedrive or a shared onedrive folder but using the user's individual credentials. unfortunately i work for a small business and was denied access to a sharepoint yet still excepted to deliver results which is beyond frustrating. 

  • Gopala_Krishna Profile Picture
    1,495 on at

    @corina 

     

    I don't think that's possible as power automate will use the credentials or user details of connection for that action card.

     

    You can try to come up with an innovative solution if any and can write a blog post that can help many others.

    Looking forward to your success story

  • rebeccas Profile Picture
    2,591 on at

    I like the OneDrive for some things like their Convert so what I do is make the trigger something on me (like when an item is created) instead of by PowerApps and then I am the trigger and then I use my OneDrive to convert the file and after I am done I place the file in a place for the user to get to. Sometimes as an attachment on a SharePoint list (that triggered it), maybe email to them, or I put in a SharePoint Library. 

     

    So I am using my OneDrive to do the Flow but not for anything related to the user. 

     

    Here is one example of how I have used that "process" with PowerApps when capturing signatures. 

    https://youtu.be/dUA9nuw2R5g

     

    Let me know if you need more information on how you could make it work for your scenario if you think it would work well for you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard