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 / How i can add an ad-ho...
Power Apps
Answered

How i can add an ad-hoc attachment control inside my screen and get the attachment content and add it as an attachment inside a list item

(1) ShareShare
ReportReport
Posted on by 3,514

I have a screen , where the user enter an 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 as attachment inside the list item?

 

Can anyone advice?

 

Here is what i did, where i added an Input text to enter the 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

 

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi!

     

    You can't patch attachments that way. You can either patch using FormName.Updates or by creating a form that you submit.

     

    I would use a Power Apps Form - make the Item property 

    LookUp(test1231, ID = Value(TextInput1.Text))

     

    Then only include the Attachments field (and any required fields - you can hide these after confirming they will be keeping the existing value).

     

    That way you can use the SubmitForm() function and the form will handle adding the attachments to the row item.

     

    Cheers,

    Sancho

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard