locked
How to check the Unic no in dynamics crm 2011 by using plugins? RRS feed

  • Question

  • Hi friends,

    How to check the unic number in dynamics crm by using plugins or java script?

    EX: in account entity primarikey is there

        enter 1 st time the primary key is accepted

        enter 2 nd time already this primary key is available (message will be displayed)

    this is the requirement.

    Help me.

    Wednesday, February 29, 2012 6:00 AM

All replies

  • I'm guessing you mean unique number.

    I would use a plugin and if it's on account number.

    when the user saves the record, you should write a pre-validation plugin.  

    Do a select which looks for other accounts with the same number, if it returns a value don't save the record.

    I think the best thing to do would be to automatically create the account number based on some logic and then if you get a duplicate you create a different account number.



    Ben Hosking
    Check out my CRM Blog
    Linked-In Profile
    Follow Me on Twitter!

    Wednesday, February 29, 2012 9:59 AM