web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 8Y1mGPqFako2DhEFGNI28V
Power Automate - Building Flows
Answered

Created a file from the triger for selected item - documents are blank

Like (0) ShareShare
ReportReport
Posted on 4 May 2021 22:54:29 by

hello,

 

I need to create item when a user add a file from the trigger for a selected item. Everyting works fine but when i want to open the document created its content is blank.

 

 

ALP1_1-1620168512668.png

For the action create file, the expression i used to obtain the name of the file i have input is 

string(triggerBody()?['file']?['name'])

and for file content is 
string(triggerBody()?['file']?['contentBytes'])
I don' t understand what i'm missing
I have the same question (0)
  • alrezac Profile Picture
    on 06 May 2021 at 21:10:52
    Re: Created a file from the triger for selected item - documents are blank

    Hi,

     

    Thanks for your follow up message! I am glad that you were able to resolve your issue here. Remember to set the answer for this thread to help future users with similar issues in the future.

     

    Regards,

     

    Alex

     

    -------

     

    Community Support Team _ Alex Rezac
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Verified answer
    Community Power Platform Member Profile Picture
    on 04 May 2021 at 23:05:13
    Re: Created a file from the triger for selected item - documents are blank

    Find the answer.

    I forgot to add base64ToBinary.

     

    base64ToBinary(triggerBody()?['file']?['contentBytes'])

     

    It works now

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 786 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 724 Super User 2025 Season 2

#3
stampcoin Profile Picture

stampcoin 290 Super User 2025 Season 2

Last 30 days Overall leaderboard