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 / Create file manually p...
Power Automate
Unanswered

Create file manually provide file content

(1) ShareShare
ReportReport
Posted on by

I'm trying to create a flow that creates a file without calling/referencing a seperate file for 'file content'.

 

Have performed :

- Get file content (Onedrive/Excel)

- Create file (Onedrive) and configuring file content to the 'file content' from 1st step using dynamic data

 

No issue with above.  However, if I just try and copy/paste the output of the 1st step (Get file content) and paste it into 'file contents' field in the 2nd step, the result is a corrupt file.

 

Have also tried creating a variable, setting the value by copy/pasting output from 1st step.  Copy/paste the output itself, not using dynamic data to point to output of 1st step.  Used this variable as 'file content' in 2nd step, failed.  

 

Created compose statement with value of the 1st step, same failure.  Tried assigning value of the variable above to compose statement, failed as well.

 

Cross checked the raw input of all attempts against raw input where 'file content' is referenced directly using dynamic data, and there are always differences.

 

Can what I am describing be done?  What would be proper way to get the file content from source, and use it to create a new flow/file independent of source?

Categories:
I have the same question (0)
  • WillPage Profile Picture
    2,329 Super User 2026 Season 1 on at

    the file content input of a Create file action expects base64 encoded file content in a JSON object like this:

    {
     "$content-type": "application/pdf",
     "$content": "/9j/4QEeRXhpZgAATU0AKgAAAAgABwEAAAQAAAABAAAGYwEQAAIA..."
    }

    Substitute the content type and base64 bytes with your own file mime type and content. You can use probably application/octet-stream as a catch-all MIME type.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard