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 / Can i upload an image ...
Power Apps
Unanswered

Can i upload an image and add it as an attachment to a list item

(0) ShareShare
ReportReport
Posted on by 3,514

I have a screen , where the user enter a Item ID + Attach an image >> now i want to get the item which have the related ID >> and get the attachment content >> then add the attachment (uploaded image) as attachment inside the list item.

 

 

Here is what i did, where i added an Input text to enter the item ID + Add Picture media:-

 

johnjohn123_0-1686782010555.png

 

and the following formulas inside the button:-

 

 

// Get the entered ID
Set(
 enteredID,
 TextInput1.Text
);



Set(
 selectedItem,
 LookUp(test1231, ID = Value(enteredID))
 )
;

// Check if a list item is found

 Patch(
 test1231,selectedItem,

 {
 Title:selectedItem.Title,
 Attachments: UploadedImage2
 
 }
 );

 

 

 

 

 

but when i click on the button >> no attachment will get added to the list item, and i will not get any error... so what is causing this issue?

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @johnjohn123 ,

     

    If you want to use the patch function to submit attachments, please use the attachment card in the form, being like: Patch(***,Defaults(***),{Title:"Test"},Form.Updates)

    vxiaochenmsft_0-1686881026597.png

     

    Best Regards,

    Wearsky

  • johnjohn123 Profile Picture
    3,514 on at

    @v-xiaochen-msft thanks for the reply,,, but i can not find the attachment control to be added inside my screen, any advice?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @johnjohn123 ,

     

    The attachment control is in the card of the form.

    Hope it makes sense.

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard