Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Modify global option set from plugin

$
0
0

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?


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>