0
votes

Given that the existing OrganizationServiceContext for a Plugin is performs updates in the current SQL transaction context (assuming pre or post validation event), is there an efficient way to update a separate entity outside this transaction/context?

The goal is to avoid rollback of updates on a different entity (other than the Plugin target entity) when an exception is thrown.

1

1 Answers

2
votes

Just create a new IOrganizationService rather than use OrganizationServiceContext.

Check this example.