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 Apps / Power app Image To One...
Power Apps
Unanswered

Power app Image To One drive

(0) ShareShare
ReportReport
Posted on by

HI

 

I need to send the image from power app  form to power automate flow to create a file in onedrive

The parameters I passed in the flow for run are :

If(
varformmode3 = FormMode.New,
Set(
varImage8,
JSON(
Image2.Image,
JSONFormat.IncludeBinaryData
)
)
);
Set(
TEST_FLOW.Run(Form1.LastSubmit.ID, varImage8)
);
Notify("Your submission has been received.");
NewForm(Form1);
Navigate(
'SAP Thank You')

 THE FLOW IS WORKING IN THE FOLLOWING WAY 

Emptyglasses_0-1680086625626.png

 

But the file is not getting saved as an Image in  Onedrive , It is getting saved in the following way 

Emptyglasses_1-1680086694532.png

Emptyglasses_2-1680086732390.png

 

 

Could anyone please help me to save these image in Onedrive 

I even tried these  :

base64ToBinary(triggerBody()?['file']?['contentBytes'])  but showing an error
 
Any help on this would be much appreciated 
Categories:
I have the same question (0)
  • victorcp Profile Picture
    2,350 Moderator on at

    Hello!

    As far as I can see the file doesn't have an extension, try getting the file extension as pass it to the flow

     

    you can test renaming the file to '84.png' or the correct extension

     

    I hope it helps 🙂

  • Community Power Platform Member Profile Picture
    on at

    hI 

     

    thanks for the response

     

    could u please be brief where exactly should I add the extension in the formula  

  • Community Power Platform Member Profile Picture
    on at

    Hi 

     

    I tried adding .png, .jpeg and .jpg

     

    I even checked the image format its showing as png , but its not working

    Emptyglasses_0-1680154226863.png

     

     

  • victorcp Profile Picture
    2,350 Moderator on at

    and there is another problem, when using PowerApps V2 trigger you have to use a diferent schema, it should be something like this:

    TEST_FLOW.Run(
     Form1.LastSubmit.ID,
     {
     contentBytes: Image2.Image,
     name: Text(Form1.LastSubmit.ID)
     }
    )

     

    can you refresh your flow here, and try again?

    victorcp_0-1680179426606.png

     

  • Community Power Platform Member Profile Picture
    on at

    Hi 

     

    I tried that but same result 

     

    The file is getting saved in onedrive ,but not been able to open it 

     

    I tried to add extension along with the file name  but its still showing like this 

     

    Emptyglasses_0-1680236698652.pngEmptyglasses_1-1680236724041.png

     

  • victorcp Profile Picture
    2,350 Moderator on at

    That's weird, I created your cenario and everything is fine, look:

    PowerApps:

    victorcp_0-1680249961357.png

    PowerAutomate:

    victorcp_1-1680250026368.png

    OneDrive:

    victorcp_3-1680250315028.png

    victorcp_2-1680250303705.png

     

    Try make image input required and make sure there is a image

    victorcp_4-1680250390286.png

     

  • Community Power Platform Member Profile Picture
    on at

    Hi Thanks for replying 

     

    I'm not been able to figure out why it is not working 

    The image is an image column from my sharepoint list which is my Datasource (perfectly getting stored )

     

    ON SUCESS OF MY FORM 

    If(
    varformmode3 = FormMode.New,
    TEST_FLOW.Run(
    Form1.LastSubmit.ID,
    "filename",
    {
    contentBytes: Image2.Image,
    name: "filename"
    }
    )
    );
    Notify("Your submission has been received.");
    NewForm(Form1);
    Navigate('SAP THABKYOU SCREEN')

    POWER AUTOMATE FLOW 

    Emptyglasses_1-1680258565299.png

    Emptyglasses_3-1680258660005.png

    Emptyglasses_4-1680258676038.png

     

     

    I double checked the image property it is png  only 

    Spoiler (Highlight to read)
    Emptyglasses_2-1680258627001.png

     

     

     

     

     

    ONE DRIVE 

    Emptyglasses_0-1680258475204.png

     

    when I open the file 

    Emptyglasses_5-1680258739162.png

    even after I downloaded also it still showing error

     

    I 've tried so hard to fix it but still not been able to figure out the exact problem

  • victorcp Profile Picture
    2,350 Moderator on at

    I see now, when you submit the form it reloads the form and the image is gone, so when you try to send the image it is blank.

    Before you submit your form save the image in a variable, like this:

    Set(varImage8, Image2.Image);
    SubmitForm(Form)

    and update the flow parameters with it

     

    I hope it helps 🙂

  • Community Power Platform Member Profile Picture
    on at

    No way man ,

     

    I don't know  ,Why I'am still facing this issue , I did the exact steps still I'm not been able to figure out the root cause 

    Emptyglasses_3-1680266115807.pngEmptyglasses_4-1680266160986.pngEmptyglasses_5-1680266218721.png

     

     

    Still I'm not beeen able send those image to flow it showing the body as null 

    Emptyglasses_1-1680265952512.png

    Spoiler (Highlight to read)
    Emptyglasses_2-1680266009444.png

     

     

    Could u please help me to fix this 

     

    one Drive

    Emptyglasses_0-1680265746498.png

    w

  • victorcp Profile Picture
    2,350 Moderator on at

    Can you make sure Image2 is the correct component?

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard