cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Geotrix
Post Partisan
Post Partisan

Create a jpg or pdf file

I upload a picture in my App, now I want to upload this into One Drive, I do this with a flow, but in OneDrive there is a file but no jpg or pdf, how can I upload this file with pdf or jpg?

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @Geotrix 

Are you using the “Create file” action or “Copy file” action in your flow?

I assume you are using the “Create file” action inside your Flow and “Bild” is your file name.

If so, you can directly add file extension inside your formula. I did a simple test on my side.

This is my flow:

v-albai-msft_7-1614856881941.png

This is my app:

v-albai-msft_8-1614856881949.png

See my result:

v-albai-msft_9-1614856881950.png

If I do not include file extension in my formula, check result this time:

v-albai-msft_10-1614856881951.png

v-albai-msft_11-1614856881952.png

You can also check your flow result in below location, I think your result should be ”Bild”:

v-albai-msft_12-1614856881953.png

Best Regards,

Allen

View solution in original post

2 REPLIES 2
Geotrix
Post Partisan
Post Partisan

I try it with follow code to upload the foto but I cannot change the file extension. My Code: ('PowerApp->Dateierstellen'.Run("Bild"; UploadedImage1.Image)

 

Edit: Here a new description: I have a object called add picture, so I can add a picture in my app and I have a button to export the picture (behind the button is a flow wich save the file in One Drive). The upload works but I cannot open this file in One Drive, how can I fix this? My Code to start the Flow is: 'PowerApp->Dateierstellen'.Run("Bild"; UploadedImage1.Image

v-albai-msft
Community Support
Community Support

Hi @Geotrix 

Are you using the “Create file” action or “Copy file” action in your flow?

I assume you are using the “Create file” action inside your Flow and “Bild” is your file name.

If so, you can directly add file extension inside your formula. I did a simple test on my side.

This is my flow:

v-albai-msft_7-1614856881941.png

This is my app:

v-albai-msft_8-1614856881949.png

See my result:

v-albai-msft_9-1614856881950.png

If I do not include file extension in my formula, check result this time:

v-albai-msft_10-1614856881951.png

v-albai-msft_11-1614856881952.png

You can also check your flow result in below location, I think your result should be ”Bild”:

v-albai-msft_12-1614856881953.png

Best Regards,

Allen

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (56,880)