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

Patch a Dataverse Table with Auto Number Column

I am trying to use the patch command to add a new record to a second Dataverse table when a form is submitted for another table. I have it mostly working so far, but I am running into an issue where the Patch fails because the second table's primary column is an auto-number column. Patch seems to not be able to create a new record because that column is required, but it isn't a column I can patch myself. Is there a function that will tell Patch this is an auto-generated number?

2 REPLIES 2
Drrickryp
Super User
Super User

@mikebrodt 

Try removing the required property from that column.  It will autonumber without it.

 I would, but it is the default column for that table. I need it to auto number because that table is being used to track changes.

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,267)