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 / Group SharePoint - Get...
Power Automate
Unanswered

Group SharePoint - Get File Content and add attachment to SharePoint list

(0) ShareShare
ReportReport
Posted on by 6

Hello 

 

I'm creating a flow 'When a new response is submitted (SharePoint)' the Microsoft Form responses which is in a Group SharePoint is sent to a SharePoint list. 
I have no issue sending responses (create item) to the SharePoint list, but I cannot add the attachments to the list. Is my file identifier wrong? 

SapphireOdette_3-1699909911958.png

 

SapphireOdette_2-1699909790348.png

 

 

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

    Hi @SapphireOdette ,

    Please post screenshots of the parameters filled in these two 'actions'.

    vyetonggumsft_11-1699929673111.png

    Best Regards,

    Sunshine Gu

     

     

     

     

  • SapphireOdette Profile Picture
    6 on at

    I have two attachments on the Forms, and one is an optional field. 

    SapphireOdette_0-1699999423068.png

     

  • v-yetonggu-msft Profile Picture
    on at

    Hi @SapphireOdette ,

    There are two questions about uploading attachments in your form, one is optional and the other is mandatory. You want to upload the attachments in these two questions to a new item you just created?

    If so, I did a test for your reference.

    In my scenario ‘Question’ is a required attachment question and ‘Document’ is an optional attachment question.

    vyetonggumsft_9-1700108234698.png

    This is my complete flow screenshot:

    vyetonggumsft_3-1700107442413.png

    vyetonggumsft_13-1700108490886.png

    vyetonggumsft_6-1700107547034.png

    Please note that because there are too many similar actions, do not select the dynamic content of the above action. Be sure to select the dynamic content of the corresponding action.

    vyetonggumsft_12-1700108366416.png

    The code in the ‘Parse Json’ action:

     

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "name": {
     "type": "string"
     },
     "link": {
     "type": "string"
     },
     "id": {
     "type": "string"
     },
     "type": {},
     "size": {
     "type": "integer"
     },
     "referenceId": {
     "type": "string"
     },
     "driveId": {
     "type": "string"
     },
     "status": {
     "type": "integer"
     },
     "uploadSessionUrl": {}
     },
     "required": [
     "name",
     "link",
     "id",
     "type",
     "size",
     "referenceId",
     "driveId",
     "status",
     "uploadSessionUrl"
     ]
     }
    }

     

    Best Regards,

    Sunshine Gu

     

  • SapphireOdette Profile Picture
    6 on at

    Hello 

     

    I have tried this flow and have the same issue. Should the get file content be from SharePoint and not OneDrive as the Microsoft Forms is housed on a Teams SharePoint and not a personal OneDrive? 

    SapphireOdette_0-1701049261851.png

     

  • v-yetonggu-msft Profile Picture
    on at

    Hi @SapphireOdette ï¼Œ

    Please try to replace the 'Get file content (OneDrive)' control with the 'Get file content using path (SharePoint)' control.

    vyetonggumsft_1-1701049957717.png

     

    /Shared Documents/Apps/Microsoft Forms/FormName/Question/

     

    Best Regards,

    Sunshine Gu

  • SapphireOdette Profile Picture
    6 on at

    Hello 

    My version of Power Automate is slightly different. Is the below correct? 

    SapphireOdette_0-1701052941572.png

    SapphireOdette_1-1701052954252.png

     

  • v-yetonggu-msft Profile Picture
    on at

    Hi @SapphireOdette ,

    Your 'File Path' configuration is incorrect. You have selected two less files and an extra '/' symbol.

    1)This is the new designer. You can switch to the classic designer.

    vyetonggumsft_0-1701053158969.png

    2)Please copy and paste my expression into ‘File Path’, and then fill in your MS form name and dynamic content ‘name’.

    vyetonggumsft_1-1701053382598.png

     

     

    /Shared Documents/Apps/Microsoft Forms//Question/

     

     

    vyetonggumsft_4-1701053880070.png

    Best Regards,

    Sunshine Gu

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard