cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Marcelo_br
Frequent Visitor

Differences between Collect and Patch Default

Hello Everyone,

Is there any difference between using Collect to create a record in a sharepoint and using Patch(Default) to create the same record?

I've read somewhere that Patch wouldn't affect the ID for the records, but just tested it and I couldn't see any difference between the two commands.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Marcelo_br ,

The Collect function and Patch functon both could save a new record into a data source. But Collect function could not be used to modify an existing record within your data source, the Patch function could achieve this.

 

In addition, Collect function and Patch function have some difference between execution speed. The execution speed of Collect function is faster than Patch function:5.JPG

On your side, you could quickly measure your the two function's execution performance by turning on Developer Tools in your Edge or Chrome.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @Marcelo_br ,

The Collect function and Patch functon both could save a new record into a data source. But Collect function could not be used to modify an existing record within your data source, the Patch function could achieve this.

 

In addition, Collect function and Patch function have some difference between execution speed. The execution speed of Collect function is faster than Patch function:5.JPG

On your side, you could quickly measure your the two function's execution performance by turning on Developer Tools in your Edge or Chrome.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

That was the information I was after. Thank you very much.

Thanks also for the tip on Developer Tools.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,502)