cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Patch as new record between powerapps and SharePoint List

Dear Brother @PowerAddict

 

I am consolidating the Sales module similar to Northwind sample. But it is with CDS so I am unable to get the idea on Patch

 

What I want to do is, 

 

The following highlighted fields should patch to the SharePoint List named "SalesDetails_1"

 

Patch Help.PNG

following are names of the properties

21 = ComboBox2

Model = ComboBox2_1

0 = qtyinput

0 = unitpriceinput

0 = Discountinput

 

This is the SP List

 

SP List.PNG 

 

Thank you so much for the support

 

Osmand

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Post Prodigy
Post Prodigy

Re: Patch as new record between powerapps and SharePoint List

I managed it, with your clue

 

Following formula is the one worked

 

Patch(SalesDetails_1,Defaults(SalesDetails_1),{Invoice_x0020_Number:ComboBox2.Selected},{'Model_x0020_No':ComboBox2_1.Selected},{Quantity:Value(qtyinput.Text)},{'Unit Price':Value(unitpriceinput.Text)},{Discount:Value(Discountinput.Text)})

 

@PowerAddict  Thank you so much. 

 

Osmand

 

View solution in original post

5 REPLIES 5
Highlighted
Super User
Super User

Re: Patch as new record between powerapps and SharePoint List

Have you tried Patch and are you getting an error? If so, can you please share your Patch function?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://www.thepoweraddict.com
Highlighted
Post Prodigy
Post Prodigy

Re: Patch as new record between powerapps and SharePoint List

@PowerAddict  Thank you s much for your reply. Yes tried , started

 

Patch(SalesDetails_1,Defaults(SalesDetails_1),{Invoice_x0020_Number:ComboBox2.SelectedItems.Value}.........

 

The error says, 

 

Annotation 2019-11-26 105628.jpg

Highlighted
Super User
Super User

Re: Patch as new record between powerapps and SharePoint List

If that's the only error, then try Combobox2.Selected.Value and let me know what you get.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
Highlighted
Post Prodigy
Post Prodigy

Re: Patch as new record between powerapps and SharePoint List

I managed it, with your clue

 

Following formula is the one worked

 

Patch(SalesDetails_1,Defaults(SalesDetails_1),{Invoice_x0020_Number:ComboBox2.Selected},{'Model_x0020_No':ComboBox2_1.Selected},{Quantity:Value(qtyinput.Text)},{'Unit Price':Value(unitpriceinput.Text)},{Discount:Value(Discountinput.Text)})

 

@PowerAddict  Thank you so much. 

 

Osmand

 

View solution in original post

Highlighted
Super User
Super User

Re: Patch as new record between powerapps and SharePoint List

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (9,641)