Hello!
I have a custom Entity that contains a text attribute and a boolean attribute. I want to have a global option set with options that corresponds to records of this Entity that have true value of boolean attribute. I've created both entity and option set from my .net application. So as I see, my next step is to define behavior in next cases:
1) Record was updated. If boolean value was changed from true to false, I need to delete option from option set. If boolean value was changed from false to true, I need to add option to option set.
2) Record was created. If boolean attribute was set to true, I need to add option to option set.
3) Record was deleted. If boolean attribute was set to true, I need to delete option from option set.
Sounds like a plugin to me. But when trying to execute InsertOptionValueRequest or DeleteOptionValueRequest from plugin, it shoots an error (You cannot start a transaction with a different isolation level than is already set on the current transactionDetail)
Is it possible to change option set from plugin? And if it is, what am I doing wrong?
*This post is locked for comments