Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
1 like 0 dislike
5.8k views
in Power Apps by 24 25 33
edited by
In PowerApps,Iam working with canvas app and use Patch function to save the data to the SharePoint list instead of using submit form , How to add attatchment to the SharePoint list inside Patch?

1 Answer

2 like 0 dislike
by 48 54 94
selected by
 
Best answer

You can do a little workaround to make it simple,

  1. First add form with display mode new and add your SharePoint list as a Data source to this form and only add the Attachment control
  2. in the submit button use your patch function and add updates to be yourform.Updates
    like this formula

Patch('Travel requests',Defaults('Travel requests'),{Title:"ddd"},Form1.Updates)

If you don’t ask, the answer is always NO!
...