I have a gallery which people can use to create new list in SharePoint. The user can use old values in the selected gallery and it will contain attachment. I have added the following code on Submit.
Patch('List',Defaults('List'),{
Title:DataCardValue3.Text,
},
Form2.Updates)
The attachment which comes from the selected gallery doesn't get added to the new SharePoint list. I can delete the attachment from the screen and re-add it again and that will add the attachment to a SharePoint list. So it is probably happening because the canvas app doesn't see pre-populated attachment as update so hence it doesn't get uploaded to the SharePoint. Is there a work around for this?