I am receiving the following error
I think we built this to update one, but its a cleanup service and is supposed to mark it inactive so if there are multiple the right action is to mark all inactive. Wondering if theres a use case where it'd be bad to allow upsert to update multiple and thats why the restriction is in place
Should an upsert be able to update multiple?Upsert Cant Update Multiple
-
- Posts: 472
- Joined: November 16th, 2021, 11:15 am
- Contact:
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: Upsert Cant Update Multiple
We did have an internal discussion about this. At the time we decided that Upsert should only really be used to update/insert a single record which is why we kept the keys instead of replacing it with the where clause builder.
word count: 42