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 / Flow example to copy f...
Power Automate
Answered

Flow example to copy file from sharepoint to network file path

(0) ShareShare
ReportReport
Posted on by 9

I am looking to create a flow to copy file from Sharepoint to network file path and keeps giving error saying credentials for this connection do not have access to this location \\machinenanme\Test. Any ideas what could be wrong in the flow config? Thanks

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey Mate @rakhig  - 

     

    I think the problem is similar to - https://powerusers.microsoft.com/t5/Connecting-To-Data/Problem-connecting-to-File-System-in-Flow/td-p/84581 

     

    I have included the solution from the above link below for your reference. 

     

    The error told that the credentials for the connection do not have access to your folder.

    Could you please check whether the connection you have selected is the right one.

    CFernandes_1-1625043417619.png

     

     

    Further, if the Username, Password, gateway in your connection is wrong, an error could occur as you. Could you please check the Username, Password, gateway in your connection.

     

    You could refer to screenshots below:

    CFernandes_2-1625043417622.png

     

     

    Make sure the Username is  configured to “DOMAIN\Username” and the Password is correct.

    In addition, make sure the gateway you choose should be an already installed gateway in your computer.

     

    I have made a test on my side, the issue you mentioned doesn’t  accur, you could refer to steps below:

    1. Add a trigger, you could choose trigger ”When a new email arrives” and choose a path in the Folder field, the Has Attachment Filed and Include Attachments Filed both set to Yes.
    2. Add an Apply to each, choose the Attachments dynamic content of ”When a new email arrives” in the input field.
    3. Inside the Apply to each, add action “Create file” of “File System” connector, create a connection like me above. choose “File System” in the Folder path field, choose the Name dynamic content of ”When a new email arrives” in the File name field, choose the Content dynamic content of ”When a new email arrives” in the File content field.

     

     

    Image reference:

     

    CFernandes_3-1625043417626.jpeg

     

    When I receive an email with attachment, the flow run successfully as below:

     

    CFernandes_4-1625043417628.png

     

    And the attachment has been saved in the Root path “C:\Users\Administrator\Desktop\1\2”

     

    CFernandes_5-1625043416995.png

     

    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!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • rakhig Profile Picture
    9 on at

    Thank you! I will check the connections and give it a try again.

     

  • rakhig Profile Picture
    9 on at

    Do you know if the machine needs to be online for this flow to work? Thank 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard