Skip to main content

Notifications

Power Platform Community / Forums / Using Flows / Adding attachment to S...
Using Flows
Answered

Adding attachment to SharePoint List

Posted on by 26

I have an MS Form that includes an attachment section. I need to automatically transfer any attachments submitted through the form to a SharePoint list.

mihiranP_0-1711381407141.png

I have already created an automation flow for transferring data, but how can I add an attachment?

mihiranP_1-1711381556909.png

 

  • nickviran Profile Picture
    nickviran 12 on at
    Adding attachment to SharePoint List
    Hello, 
     
    I tried the sample below and got an error that "The response is not in a JSON format."
     
  • mihiranP Profile Picture
    mihiranP 26 on at
    Re: Adding attachment to SharePoint List

    @v-bofeng-msft  Thanks This is worked

  • Verified answer
    Re: Adding attachment to SharePoint List

    Hi @mihiranP ,

     

    I've made a test for your reference:

    vbofengmsft_0-1711417007845.png

    vbofengmsft_1-1711417090494.png

    JSON 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"
     ]
     }
    }

     

    Best Regards,

    Bof

     

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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,191

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,419

Leaderboard

Featured topics

Restore a deleted flow