cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lorenzobr
New Member

Write data in excel

Hi, 

I’m making my first app and I have some question...

I have an excel file with 3 fields (member, date, attachment) and i’d like to fill “members” with my office365 users list.

I’d also like to store the attachments in a folder on my Onedrive cloud.

I tried to set a dropdown field with my office365 user list but it didn’t save it in the excel file.

 

how can I solve?

 

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @lorenzobr ,

1)

Do you want to save user data from office365 in excel?

Since there's no data type like person field of sharepoint list in excel, so you could not directly save one person to excel.

Could you tell me what user data exactly that you want to save in excel?

I assume that you want to save user's email.

Could you tell me how do you want to search user's email?

I assume that you use a combo box.

Then you could set like this:

the combo box's Items:

Office365Users.SearchUserV2({searchTerm:ComboBox1.SearchText}).value

use this formula to update member field:

ComboBox1.Selected.Mail

 

2)Do you want to save file to excel file?

Please notice that: it's not supported to upload image to excel by using powerapps, other file type is not supported.

You need to:

upload excel to one drive

connect your app with this excel in cloud

create a field named: attachment[image]    in your excel

use an add picture control to choose image to upload

use this formula to update attachment field:

 

UploadedImage1.Image

Then the images will be saved in one folder of the one drive automatically.

Please notice that: you need to have read and write permission on this excel file.

Here's a doc about how to upload images to excel for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-images-pictures-audio-video

 

 

Best regards,

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @lorenzobr ,

1)

Do you want to save user data from office365 in excel?

Since there's no data type like person field of sharepoint list in excel, so you could not directly save one person to excel.

Could you tell me what user data exactly that you want to save in excel?

I assume that you want to save user's email.

Could you tell me how do you want to search user's email?

I assume that you use a combo box.

Then you could set like this:

the combo box's Items:

Office365Users.SearchUserV2({searchTerm:ComboBox1.SearchText}).value

use this formula to update member field:

ComboBox1.Selected.Mail

 

2)Do you want to save file to excel file?

Please notice that: it's not supported to upload image to excel by using powerapps, other file type is not supported.

You need to:

upload excel to one drive

connect your app with this excel in cloud

create a field named: attachment[image]    in your excel

use an add picture control to choose image to upload

use this formula to update attachment field:

 

UploadedImage1.Image

Then the images will be saved in one folder of the one drive automatically.

Please notice that: you need to have read and write permission on this excel file.

Here's a doc about how to upload images to excel for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-images-pictures-audio-video

 

 

Best regards,

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

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 (61,266)