Hi all,
Viewing these videos, I created a dataverse table for register Invoices data and another table for the Invoices Attachments:
I made my tasks and I get some issues:
First, when I copy and paste the attachment control outside the form (DataCardValue) , the option to "Upload file" is missing, I am using a form connected with a dataverse table inside Teams.
Second, If I keep the attachment control of the form anyway and I type this formula on the Success event of the form:
Creating a record on the Invoices Attachments table based on the Attchament control of the form.
ForAll(DataCardValue254.Attachments ,
Patch(Inventory_Invoices_Attachments, Defaults(Inventory_Invoices_Attachments),
{
Name:frmInvoice.LastSubmit.Name,
Invoice:frmInvoice.LastSubmit,
File:{FileName:ThisRecord.Name , Value:ThisRecord.Value}
}
));
It does nothing, it does not enter in the loop.
It is like the control DataCardValue254.Attachments is empty after the form submit.
And If I do Countrows(DataCardValue254.Attachments) before submit the form, it counts the amount of attachments well.
Any idea about it?
Thanks for any help!