locked
How to identify if Phone Call recipient is Contact, Account, Lead or User? JavaScript RRS feed

  • Question

  • I am writing some JavaScript in the OnChange of the Phone Call entity (MSCRM 4.0).

    The Recipient field (to) allows for a contact, account, lead, or user to be related to the phone call but I am only interested in Phone Call records where the a contact has been entered. With JavaScript how do I identify that the recipient is a contact as opposed to one of the other record types?

    Thanks.

    Wednesday, October 10, 2012 4:08 PM

Answers

  • I found my own answer:

     if (crmForm.all.to.DataValue[0].typename == 'contact')

    • Marked as answer by Bozwell99 Wednesday, October 10, 2012 4:34 PM
    Wednesday, October 10, 2012 4:34 PM