Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Send Image from Powerapp to Onedrive

(0) ShareShare
ReportReport
Posted on by 115

Hello,

 

could anybody show me a flow to send an image from Powerapps to my Onedrive?

I can send an image and it states: "the fileformat is not supported" 😞

 

 

I tried these two Codesnippets which both do not work 😞 :

 

Set(VarBase64;JSON(UploadedImage4.Image;JSONFormat.IncludeBinaryData));;


Set(VarBase64Only;Mid(VarBase64;Find(",";VarBase64)+1;Len(VarBase64)-Find(",";VarBase64)-2));;

 

 

Thank you guys

 

  • MarioOne Profile Picture
    67 on at
    Re: Send Image from Powerapp to Onedrive

    I am looking for similar solution where I am collecting pictures in gallery and I want them now to be saved into OneDrive. I ma lacking the logic related to functions coding and all my attemts failed. Will that be possible for your present all the work broken to steps or at lest show what is written in value for initialize variable?

  • noobi Profile Picture
    115 on at
    Re: Send Image from Powerapp to Onedrive

    Hello Wearsky,

     

    I solved the issue by uploading the file with sharepoint connector and editing the Code to: 

     

     

     

     

     

    Set(VarBase64;JSON(UploadedImage4.Image;JSONFormat.IncludeBinaryData));;
    Set(VarBase64Only;Mid(VarBase64;Find(",";VarBase64)+1;Len(VarBase64)-Find(",";VarBase64)-1));;
    BildInSharepointLaden.Run(User().Email;VarBase64Only);;

     

     

     

     

    And the example flow (seen in a video from Shane Young):

    FromPowerAppstoSpLibrary.png

     

    Still I want to thank you for showing me how to archive the same with uploading the file directly to my onedrive 🙂

     

    Best Regards,

    noobi

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Send Image from Powerapp to Onedrive

    Hi @noobi ,

     

    I made a sample for you.

    vxiaochenmsft_0-1673495098938.png

    vxiaochenmsft_1-1673495187202.png

    Set(VarBase64;JSON(UploadedImage1.Image;JSONFormat.IncludeBinaryData));;
    'PowerApp->Initializevariable,Createfile'.Run(Substitute(VarBase64;"""";""))

     

    Best Regards,

    Wearsky

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492