
From what I understand, according to Microsoft Doc, you can upload multiple files to Dataverse with Attachments control.
I have a Dataverse table with Attachments enabled and a file-type column, named Document. This table is simply Year, Month, Document.
I have a couple dropdowns for Year and Month. I have a Gallery control referencing the Dataverse table, filtered using the dropdowns.
I am using the Attachments control unbound from a Form\Card (I noticed that many experts do this), but referencing the Gallery, to display any existing attachments for the selected record.
My question is.. what would be the function\syntax I would place on a button to Patch\Save all files chosen by the end-user, with the Attachments control?
I searched exhaustively, but many resources were referencing Sharepoint, and is hard to know what is referencing most up-to-date features and functionality.
This task is not a frequent one, so I am not concerned with performance, per say, and would only be a few files at a time.
I have this solved.. as I was not thinking about this correctly..
There can be multiple records (duplicates) on that table per year\month\document.
I unbound the dropdowns to that table.
I removed all records from the table (year\months).
And added a ForAll\Add Patch.
It is working except that it looks to be uploading\adding the first file multiple times.. to be addressed outside of this post..