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

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?