web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Upload photo and save ...
Power Apps
Answered

Upload photo and save text in to Excel from Power app

(0) ShareShare
ReportReport
Posted on by 22
 

 Tablename.png

Drive: One drive for business

Data connection: Excel file

Table name : ImageTable

 

 

 

 

To select the media file I am using : AddMediaWithImage1 control

Collect button: Collect(colpictxt,{Imageup:AddMediaWithImage1, Textinp:TextInput1.Text})

Adds the textbox and image to the collection

Collections.png

 

 

Submit button :

Patch(ImageTable,Defaults(ImageTable),{Imageup:colpictxt.Imageup},{Textin:colpictxt.Textinp})

Adds the image assets and the text into the Excel sheet.


But I get an error saying “ The type of this argument “Imageup” does not match the expected type ‘Image’.Found type Table

 

I can insert the text in to the excel file

This works

Text submit button:

Patch(ImageTable,Defaults(ImageTable),{Textin:TextInput1.Text})

 

screen.png

 

Categories:
  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @tartutic07 ,

    Do you want to upload image to excel?

    You have three points that need to be paid attention to:

    1)the patch syntax should be:

    Patch(table,Defaults(table),{field1:....,field2:...})

    2)If you want to update all the data in a table to another table, you need to use ForAll function.

    3)the image column's name in excel should be like:

    fieldname[image]

     

    So you need to do two things:

    1)rename your image column to :  Imageup[image]

    2)the patch formula should be like this: 

    ForAll(colpictxt,Patch(ImageTable,Defaults(ImageTable),{Imageup[image]:Imageup,Textin:Textinp}))

     

     

     

    Best regards,

  • tartutic07 Profile Picture
    22 on at

    Hii ,

    Sorry for the late reply.

    I tried the ForAll solution.

     

     

    I got an error saying "The requested operation is invalid. Server Response: A value must be provided for item" 

    I checked the column is formatted as text (as that was one solution in the forum).

     

    Untitled.png

     

     

    I have also tried Imageinp[image] in the functions bar , i get the same error

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard