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 Automate / Get file content using...
Power Automate
Answered

Get file content using path error

(0) ShareShare
ReportReport
Posted on by 19

Goal is to get all attachments in submitted form and send an email including this attachments.

I've ran out of ideas regarding an error below, any help is greatly appreciated

Error:

 

 

 

Flow:

 

Tutorial that I've used to build the flow -> How to save Microsoft Forms Responses & Attachments to SharePoint Lists or Libraries & Send Email (youtube.com)

Categories:
I have the same question (0)
  • JonDoesFlow Profile Picture
    1,304 on at

    The site address doesn’t look right to me. How come there is “UZP -“ before the Site URL ? 

    ---------------------------------------------------------------------------


    If I have helped you with an answer, please accept this post as a solution and thumbs up my reply. Thanks !

    Blog - JonDoesFlow
    Twitter - JonDoesFlow
    YouTube - JonDoesFlow

  • v-yetonggu-msft Profile Picture
    on at

    Hi @mmar0605 ,

    Whether your MS Form is a private Form or a Group MS Form?

    I did test for your reference.

    In my scenario:

    vyetonggumsft_0-1703811416615.png

    vyetonggumsft_1-1703812040806.png

    item()?['id']

    vyetonggumsft_2-1703812105591.png

    {
    "Name":@{item()?['name']},
    "ContentBytes":@{body('Get_file_content')}
    }

    Best Regards,

    Sunshine Gu

  • mmar0605 Profile Picture
    19 on at

     v-yetonggu-msft it is a group MS Form located on sharepoint site that's why I used "Get file content using path" instead of "Get file content (One Drive)". 

     

    More details:

     

    Path that I get when I copy the link from sharepoint location where one of the attachment has been saved:

     

     

     

     

     

    Path that I get after flow is tested:

     

     

     

     

     

     

  • v-yetonggu-msft Profile Picture
    on at

    Hi @mmar0605 ,

    vyetonggumsft_0-1703842822554.png

    vyetonggumsft_3-1703843541297.png

     

    /Shared Documents/Apps/Microsoft Forms/YourFormName/YourQuestionName/@{items('Apply_to_each')?['name']}

     

    vyetonggumsft_4-1703843627139.png

     

    {
     "Name": @{items('Apply_to_each')?['name']},
     "ContentBytes": @{body('Get_file_content_using_path')}
    }

     

    vyetonggumsft_5-1703843792333.png

    vyetonggumsft_6-1703843850884.png

    Best Regards,

    Sunshine Gu

  • mmar0605 Profile Picture
    19 on at

    v-yetonggu-msft  applied as suggested but still in error:

     

    Applied as sugested


    Flow result:

     

    File content error:

     

    Flow:

     

     

    Sharepointe site:

     

     

    Flow error:

     

     

    Could be due to security reasons of sharepoint? I've created sharepoint site...mybe there are some access setting for security reasons. Just guessing...

  • v-yetonggu-msft Profile Picture
    on at

    Hi @mmar0605 ,

    Well, I suggest you re-create a Group MS From, do not make security settings, then re-create a flow, follow my steps, re-submit the Group MS Form, and see if you can get the file.

    Or you can cancel your existing SharePoint security settings, recreate the flow, submit the form, and run it once.

    Best Regards,

    Sunshine Gu

  • Verified answer
    mmar0605 Profile Picture
    19 on at

    @v-yetonggu-msft  there was one letter "o" missing in the path...now the flow works fine after adding the letter.

     

    wrong path -> "Molim učitaj materijale za prijevod"

    corrected path -> "Molimo učitaj materijale za prijevod 

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard