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 / Unable to get attachme...
Power Automate
Answered

Unable to get attachment from Forms into Sharepoint List

(0) ShareShare
ReportReport
Posted on by

I'm simply trying to get an attachment from Microsoft Form into a Sharepoint List.

 

Using Schema in JSON

{
"@odata.etag": "\"1\"",
"ItemInternalId": "14",
"ID": 14,
"Title": "1",
"Requester": "2",
"DetailsoftheSpecialExercise": "3",
"RequiredCompletionDate": "2022-03-10",
"InstructionsforSpecialExercise": "saf",
"{Identifier}": "Lists%252fSpecial%2bExercises%252f14_.000",
"{IsFolder}": false,
"{Thumbnail}": {
"Large": null,
"Medium": null,
"Small": null
},
"{Link}": "https://xxxxx.sharepoint.com/sites/",
"{Name}": "1",
"{FilenameWithExtension}": "1",
"{Path}": "Lists/Special Exercises/",
"{FullPath}": "Lists/Special Exercises/14_.000",
"{HasAttachments}": false,
"{VersionNumber}": "1.0"
}

 

But getting an error; 

 

[
  {
    "message""Invalid type. Expected Object but got Array.",
    "lineNumber"0,
    "linePosition"0,
    "path""",
    "schemaId""#",
    "errorType""type",
    "childErrors": []
  }
]
 
 
Categories:
I have the same question (0)
  • v-LilyW-msft Profile Picture
    on at

    Hi @steveaford 

    Do you want to save the file uploaded by Forms to SharePoint list item attachment?

    I set up a flow, you can refer to below steps to see if it helps.

    vLilyWmsft_0-1646967777104.png

    Schema:

    {
        "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"
            ]
        }
    }
    vLilyWmsft_1-1646967812830.png
    vLilyWmsft_2-1646967873168.png

    When a new response is submitted like below, a new item with attachment will be created.

    vLilyWmsft_3-1646968217753.pngvLilyWmsft_4-1646968407744.png

     

    Hope the content above may help you.

    Best Regards

    If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

  • Verified answer
    RezaDorrani Profile Picture
    12,143 on at

    Hi @steveaford 

     

    Check How to save Microsoft Forms Responses & Attachments to SharePoint Lists or Libraries & Send Email - YouTube

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard