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 / Power Automate Action ...
Power Automate
Unanswered

Power Automate Action not showing a body element in flow

(0) ShareShare
ReportReport
Posted on by

I have a Web API method that returns a PDF file along with the Content Type of application/pdf. However, I can't get Power Automate to present its response "body" as a selectable content element in my flow.

I'm sure this is to do with the way I've described my method in the swagger document (see below). How do I write the swagger to tell Power Automate to use the response body so I can present it to (for example) a "Create File (Sharepoint)" action? I've set the 200 schema to {type: file; format: binary} but I've tried {type: file} on it's own too.

 

 

/*
swagger: '2.0'
info: {title: xxxxx, version: '1.0', description: xxxxx}
host: xxxxx.azurewebsites.net
basePath: /api
schemes: [https]
consumes: []
produces: []
paths:
 /FrontPageGenerator:
 post:
 description: Output a PDF
 operationId: FrontPageGenerator
 summary: FrontPageGenerator
 parameters:
 - in: body
 name: FrontPageGeneratorRequestBody
 description: Request payload - a json object of FrontPageGenerator data
 required: true
 schema: {$ref: '#/definitions/GenericJson'}
 consumes: [application/json]
 produces: [application/json, application/pdf]
 responses:
 '200':
 description: Successfully generated PDF
 schema: {type: file; format: binary}
 headers:
 'Content-Type:': {description: 'Content-Type:', type: string}
 'Accept:': {description: 'Accept:', type: string}
definitions:
 GenericJson: {type: object}
parameters: {}
responses: {}
securityDefinitions: {}
tags: []
*/

 

 

Any advice would be most welcome! 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard