locked
How to get the primary key of an entity in client side code? RRS feed

  • Question

  •  

    Hello,

     

    I've added some custom attributes in the Opportunity entity including a picklist.

    In the onchange event of the picklist, I want to get the primary key of the current opportunity.For that i tried ,

    crmForm.all.opportunityid.DataValue[0].id

    but no way...

    Help me plz....urgent.!!!

    Friday, September 19, 2008 12:18 PM

All replies

  •  

    Hi

     

    It's actually quite easy to get the ID of the current record.  Use the following code to retrieve it:

     

    Code Snippet
    crmForm.ObjectId;

     

     

    Hope that helps.

     

    Regards,

     

    Douglas

    Saturday, September 20, 2008 5:39 AM