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 Apps / How to attach the pdf ...
Power Apps
Unanswered

How to attach the pdf file in custom connector as an input parameter

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am using a custom connector to send API requests to a server. The API is working fine in postman and there is a option to attach the pdf file. But how can we attach the same pdf file in custom connector while making a API Request.

I am attaching the Postman and connector screenshot. Please Refer.

Categories:
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    I am pretty sure Postman is converting any attached document in formdata to binary for you, so all you need to do in your custom connector is add a parameter to accept a binary input, then in the Flow where you call your connector convert your document to binary before sending it.

  • Community Power Platform Member Profile Picture
    on at

    I tried to create a Flow which is converting Base64 to Binary Format and calling the custom connector, but it is giving error as-

    {"statusCode":400,"headers":{"Transfer-Encoding":"chunked","x-correlation-id":"dolore reprehenderit laboris","x-envoy-upstream-service-time":"130","x-envoy-decorator-operation":"experience-obvion-v1.data-integration.svc.cluster.local:80/*","Strict-Transport-Security":"max-age=15724800; includeSubDomains","x-ms-apihub-cached-response":"false","Date":"Mon, 24 Jan 2022 11:12:34 GMT","Content-Type":"application/json; charset=utf-8","Content-Length":"114"},"body":{"message":"Validation Failed","details":{"":["Failed to read the request form. Missing content-type boundary."]}}}

    Also, I am unable to update the file format as a binary in custom connector. Please refer attached screenshots.

  • Community Power Platform Member Profile Picture
    on at

    While updating the file format as binary it is giving following error:

    Specified swagger has the following errors: 'Definition is not valid. Error: 'Error : paths/~1loans~1{loanNumber}~1valuation-cases/post/parameters/3/schema/properties/file : A schema with type/format 'string/binary' can only be at the top level of a body or formData parameter.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard