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 / Custom connector for f...
Power Automate
Unanswered

Custom connector for files upload

(2) ShareShare
ReportReport
Posted on by 4

I am trying to create a custom connector that sends email attachment files to a specified API.
What should I specify in the request body in order to send the attachment files

request.png

here is the API i am using

api.png

How can I test this action, how to attach a file?

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Did you make it work? I have a similar problem

  • Andi-Fandrich Profile Picture
    17 on at

    I'm also interested in a solution to this...

  • Bitopan Profile Picture
    4 on at

    Hi Andi

     

    Have you found any solution to this? I am trying to create a custom connector to upload file to a AWS S3 bucket.

     

     

  • Andi-Fandrich Profile Picture
    17 on at

    It's a pity Microsoft doesn't provide some documentation, but through very hard googling I found something that is working for me:

    "/api/file": {
    "post": {
    "consumes": [
    "multipart/form-data",
    "application/json"
    ],
    "produces": [
    "application/json"
    ],
    "responses": {
    "204": {
    "description": "OK"
    }
    },
    "summary": "File upload",
    "description": "Uploads a file",
    "operationId": "FileUpload",
    "parameters": [
    {
    "description": "File contents and name",
    "in": "formData",
    "name": "file",
    "type": "file",
    "required": true,
    "x-ms-summary": "File contents"
    }
    ]
    }
    }
  • Bitopan Profile Picture
    4 on at

    Thanks @Andi-Fandrich  I will give it a try.

  • Mattaroon Profile Picture
    13 on at

    @Andi-Fandrich, I owe you big time! The Swagger editor in the Custom Connector editor didn't quite translate your code properly but I managed to get it working! I pasted the Swagger code below, in case anyone else needs it.

     

    /file/:
     post:
     operationId: FileUpload
     consumes:
     - multipart/form-data
     - application/json
     produces:
     - application/json
     summary: File Upload
     description: Upload a file to Temp Directory
     responses:
     '200':
     description: '200'
     schema:
     type: string
     parameters:
     - name: file
     type: file
     in: formData
     required: true
     description: File Upload

     

  • RashmiHooli Profile Picture
    Microsoft Employee on at

    How do we test this operation in the custom connector ?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard