In a Plugin i have to update the record the plugin was fired by on pre sync, post sync, post async.
In Pre-sync-state, i just have to update the Context-Entity e.g. mycontact.Attributes["lastname"] = "ABC" and the changed value is automatically saved.
In Post-Update, i can not do that as its already in the Database (but not committed). My attempts to use the service (service.update(mycontact) failed.
What is the best way to Update a record in Post-Update (sync/async) - if its possible at al?!
Updating other Records is no problem, but updating record the plugin was fired by / from does not work. :-(
Any Ideas?
Regards, Nick