pow
1 TopicPatch in save function of SharePoint Integration
Hello, I am facing some issues in power app in save function. I used customize form with power app in SharePoint online. In save function , I need to use Patch() instead of submitform(SharePointform1). Sometimes it is saved data and sometimes it is not. How can I do it? Please help me! What's wrong in it? I used the following code. If(SharePointForm1.Mode=New, (Patch('Details',Defaults('Details'),{'IGT Site Code':{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Value: DataCardValue163.Selected.Title},'Project Number':DataCardValue1.Text})), Patch(' Details',First(Filter('Details','Project Number'=DataCardValue1.Text)),{'IGT Site Code':{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Value: DataCardValue163.Selected.Title},'Project Number':DataCardValue1.Text}));