Hi all,
I'm trying to enforce the optimistic concurrency control for changes done via UI. To accomplish this I've created a plugin which is triggered in the Update message (Pre-operation stage) and sets the ConcurrencyBehavior setting to IfRowVersionMatches.
In theory, this should work smoothly but it actually does not. After some tests I've found that the RowVersion property is always null:
Without the RowVersion, CRM can't compare the entity being updated with the current version of the record so the validation is never triggered.
I know that this feature is something relatively new (MSND states "Optimistic concurrency behavior can only be set through an SDK call. There is presently no setting for it in a form of the Web application.") but I would expect that at least it should be possible to access the RowVersion from the plugin context and force this behaviour.
I've read about some issues related the RowVersion in the context of a (sandboxed) plugin so I'd like to know if this is a known problem or possible workarounds.
Thanks!
*This post is locked for comments