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

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
Microsoft
Microsoft

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 Patron
Post Patron

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
Microsoft
Microsoft

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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (49,870)