Search Wiki:
Resource Page Description
Auditing for CRM 4.0 - Plugin
Last edited Jul 8 2008 at 5:33 PM  by StevenMSFT, version 3
Comments
Jamie wrote  Jul 24 2008 at 10:22 PM  
Nice it works for all fields except the one that I need it to work on: ownerid. Any clues as to why it wont create an audit for when the ownerid field is changed?

dtu11 wrote  Jul 25 2008 at 3:00 PM  
You will need to register it for the Assign plugin message to track the ownerid change.

Jamie wrote  Jul 25 2008 at 8:38 PM  
Thank you, that worked!

dtu11 wrote  Jul 28 2008 at 5:18 PM  
:)

MarkPurnell wrote  Dec 1 2008 at 5:00 PM  
Great tool. One thing that I noticed is that the auditing in short-circuited if the Duplicate Detection dialog is triggered on the update.

dtu11 wrote  Dec 9 2008 at 5:28 PM  
Interesting. So the audit is not triggered when DD is triggered or is an exception thrown?

jpd wrote  Dec 23 2008 at 8:25 PM  
Hey all - I made a change to the code so that you can specify the guid of the user you want the audit information to created as. I did this because I didn't want to grant users the ability to create and append audit records but still be able to view them. Now when the records are created, they are owned by an administrator account but the person making the change is listed under "created by".

jpd wrote  Dec 24 2008 at 3:15 PM  
I found a bug where the audit process will fail if you've changed another key property on the record and it is listed before the primary key of the record in the properties list. In my case I'm updating a contact's "member of" custom entity and the key property for the "member of" record is picked and used as the primary key of the contact instead of the contactid itself.

Updating...
Page view tracker