For update operation I can set OptionSetValueCollection field to null; for example:
kc_accountcontact.kc_directions = null
But for create operation I can't set directly OptionSetValueCollection field to null; I get error:
Sql error: 'Cannot insert the value NULL into column 'SelectedOptionValues', table '***.dbo.MultiSelectAttributeOptionValuesBase'; column does not allow nulls. INSERT fails. The statement has been terminated.'
How can I set OptionSetValueCollection field to null for create operation?
I use XrmToolBox / Early Bound Generator; since today this plugin has gotten opportunity to work with Multi-Select OptionSets, but this doesn't resolve my issue
*This post is locked for comments
Hello,
You can open a ticket with Microsoft and ask for a fix in their core. I'm afraid there is no other way of doing it. Anyway - good luck.
Thank's, I know it; now I use this workaround. But I use Upsert operation and I'd like to set null directly as well as other type fields
Hello,
Just don't populate field and it'll be created as null. Experienced this issue as well.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156