I discovered that to include an attachment control on a custom component, I could copy/paste it from a form into the component. This appeared to work perfectly as it would display attachments already added to the underlying SharePoint list, and it seemed to allow me to add/remove attachments from the component. However the patch command isn't working. It doesn't throw any errors, it just seems to ignore the changes I try to make to the attachments. Since I don't get any errors I'm not sure what could be wrong. Here's the patch command:
Patch(SPList, LookUp(SPList, ID = compAmounts.InputRecord.ID),
{
Request_Total_Local_Currency: Value(txt_TotalLocal.Text),
Region: Text(ddlCountry.Selected.Region),
Attachments: ctrl_Attachments
})SPList is my SharePoint list datasource and compAmounts is my custom component. I've tried trapping for errors but it says the record is updated successfully and I can see other fields updating. Any suggestions?

Report
All responses (
Answers (