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

base64ToBinary expression does not save

(1) ShareShare
ReportReport
Posted on by 256

I created a flow to upload files from Power Apps. I used ask Power Apps action to get  file name and content. For content, I used this expression - base64ToBinary(triggerBody()['CreatefileFileContent']). But this expression will not save even I saved it. While I was working on the flow, I could test it successfully. But whenever I saved and reopened the flow, the expression will be gone and it'll switch back to CreateFileContent default. This appears a bug. Anyone has any way to save the expression?

 

ppei_0-1601073974066.png

 

Thanks, in advance.

Pei

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @ppei  

     

    Can you add a Compose action above the Create action and check if the Power Apps returns you base64 content..

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • ppei Profile Picture
    256 on at

    @CFernandes Thank you for your suggestion. What input should I enter for Compose?

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @ppei 

     

    Please add the "CreateefilFileContent" in the Compose action and pasted the screenshot for the output of the action.

     

     

     

     

  • ppei Profile Picture
    256 on at

    @CFernandes Below is my screenshot. Thank you!

    ppei_0-1601655395006.png

     

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @ppeiPlease try, the formula below:

    base64ToBinary(outputs('<your Power Apps Variable>'))

    CFernandes_0-1601745877749.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • ppei Profile Picture
    256 on at

    @CFernandes  I don't have any variables. I can only put CreatefileFileName or CreatefileFileContent. I added CreatefileFileContent and got an error when I tried to save it. Do you have any ideas?

    ppei_0-1601760489172.png

     

  • Verified answer
    ppei Profile Picture
    256 on at

    It is weird. I tested today and it worked. Although the formula still doesn't show in the flow, the action actually converts the file and all files are now readable again. So the issue has been resolved. I hope Microsoft can resolve the issue to display the correct formula in future.

  • paulfi Profile Picture
    4 on at

    This isnt working at all for me  

     

    i attempt this formula

    base64ToBinary(outputs('Convert_HTML_to_PDF')?['body/FileContent'])

    and it doesnt save

     

    does anyone have a workaround not listed here

  • seadude Profile Picture
    1,855 on at

    If I remember right, this is an old bug in the Power Automate UI. The editor actually **performs** the `base64ToBinary` expression, but the UI does not reflect this. I think you can open `Peek Code` and that will correctly reflect the expression. It only happens at some actions (Sharepoint, etc if I recall correctly). 

  • gizmo5555 Profile Picture
    23 on at

    Good tip. That's actually the case. I've been having the same issues and peeking code revealed that value was indeed @{base64ToBinary()} Thanks!

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard