locked
Plugin error: Specified cast is invalid RRS feed

  • Question

  • Hi

    I am trying to typecaste the dynamic entity object value to an int value in a plugin

     int part=0;
    part =(

    int)phoneCall["noofparticipants"];

    But i am getting the error "Specified cast is invalid"

    Can anyone help me to solve this


    Thanks, Aarch
    • Edited by Aarch Monday, June 1, 2009 12:18 PM
    Monday, June 1, 2009 12:10 PM

Answers

  • try:

    part = ((CrmNumber)phonecall["acta_noofparticipants"]).Value;
    Blog: http://mscrm4ever.blogspot.com/ * Website: http://gicrm.upsite.co.il/
    • Marked as answer by Aarch Monday, June 1, 2009 12:24 PM
    Monday, June 1, 2009 12:15 PM

All replies

  • try:

    part = ((CrmNumber)phonecall["acta_noofparticipants"]).Value;
    Blog: http://mscrm4ever.blogspot.com/ * Website: http://gicrm.upsite.co.il/
    • Marked as answer by Aarch Monday, June 1, 2009 12:24 PM
    Monday, June 1, 2009 12:15 PM
  • Thanks adi ,it worked
    Thanks, Aarch
    Monday, June 1, 2009 12:24 PM