Resources for IT Professionals > Dynamics Forums > CRM Development > Crm Developer A CRM bug, F5 to trigger CRM plugin again!
Ask a questionAsk a question
 

Proposed AnswerCrm Developer A CRM bug, F5 to trigger CRM plugin again!

  • Wednesday, November 04, 2009 11:16 PM路人学步 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I think I found a new CRM bug. I made a plugin to track name changes of
    contact. The plugin will create a record to a "name history" entity, when
    lastname or firstname changed.

    It is working well after I did the change and save (not save and close). A
    new "name history" is created. But when I hit F5 to refresh the contact
    record at this time. The plugin was triggered again. A dup "name history" is
    created. The old value is as same as new value, because the preImage is as
    same as the context.InputParameters["Target"] now.

    There is no codes to save the contact at the onload event. If I am using
    caching something.

    If someone had face the same problem, please give me some help...


    crm4.0学步

All Replies

  • Wednesday, November 04, 2009 11:32 PMDaniel Cai Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Hi,

    It's not really CRM bug. It's the browser behavior. When you press F5 key, the browser actually sends a new request to the server, which in your case will create a new history record. That's why your browser is usually asking you for confirmation when you have pressed F5.
    Daniel Cai | http://danielcai.blogspot.com
    • Proposed As Answer byDavidBerry Thursday, November 05, 2009 12:01 AM
    •