locked
Auditing Customizations RRS feed

  • Question

  • Hi,

    I tried using Publish and Publish All but it's context only contains information of entity that is being customized .

    I need someway to register a plugin on CreateEntity and CreateAttribute messages. I tried to register plugin on these two messages but i am unable to do it.

    My requirement is to create a log file which is logged whenever field properties or it's position is changed on form.


    Regards, Saad


    • Edited by Mohd Saad Thursday, November 27, 2014 9:23 AM
    Thursday, November 27, 2014 9:10 AM

All replies

  • There is limited capability in CRM to audit customisations. There are the Import and Publish messages, which don't give you the level of detail you probably need.

    There are no plugins that fire on the create of an entity or attribute.

    However, your requirement in the last paragraph relates to auditing changes to the form layout, rather than changes to the entity or attribute. For form changes, you can register a plugin on the Update of the SystemForm and UserForm entities, which may give you what you want


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, November 27, 2014 11:02 AM
    Moderator
  • Thanks for the response. But SystemForm and UserForm are dashboard entity.

    Is there any way i can enable the CreateEntity and CreateAttribute Message from database and use them in plugins.


    Regards, Saad

    Thursday, November 27, 2014 12:55 PM
  • SystemForm is also used for the entity forms, not just dashboards

    There is an unsupported approach that may allow you to register plugins on the CreateEntity and CreateAttribute messages, but there's a risk of unexpected consequences. Whether you can register a step is determined by the column 'IsCustomProcessingStepAllowed' in the SdkMessageFilterBase table. You can identify the appropriate records in this table based on the SdkMessageId  


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, November 27, 2014 4:14 PM
    Moderator